[Android] Revise ProfileDataCache and its usage
1. Change ProfileDownloader observer registration - it is now registered on-demand iff there are observers of this ProfileDataCache instance. It allows removing ProfileDataCache.destroy(). 2. Remove FirstRunPageDelegate.getProfileDataCache() - now there's no need for Activity to keep track of ProfileDataCache. 3. Fix AccountSigninView - remove ProfileDataCache observer when view is detached from window. Bug: 746519 Change-Id: Id2245038a507aaf09a2afec4225e5fd3a6f49c07 Reviewed-on: https://chromium-review.googlesource.com/577872 Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Cr-Commit-Position: refs/heads/master@{#488230}
Showing
Please register or sign in to comment