Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5248)

Unified Diff: chrome/browser/chromeos/login/profile_image_downloader.cc

Issue 8541002: [cros] Initial user image loading and repeated profile image loading fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/profile_image_downloader.cc
diff --git a/chrome/browser/chromeos/login/profile_image_downloader.cc b/chrome/browser/chromeos/login/profile_image_downloader.cc
index 01fd80c9919ec6cd875936329ca9e3e51d16d1a5..475d94896d5b3eb5aa46fa4c06f2bc9b426514f8 100644
--- a/chrome/browser/chromeos/login/profile_image_downloader.cc
+++ b/chrome/browser/chromeos/login/profile_image_downloader.cc
@@ -167,8 +167,6 @@ void ProfileImageDownloader::Start() {
VLOG(1) << "Starting profile image downloader...";
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- // TODO(ivankr): ignore further Start() calls.
-
TokenService* service =
ProfileManager::GetDefaultProfile()->GetTokenService();
if (!service) {
@@ -182,7 +180,7 @@ void ProfileImageDownloader::Start() {
auth_token_ =
service->GetTokenForService(GaiaConstants::kPicasaService);
StartFetchingImage();
- } else if (registrar_.IsEmpty()) {
+ } else {
registrar_.Add(this,
chrome::NOTIFICATION_TOKEN_AVAILABLE,
content::Source<TokenService>(service));
« no previous file with comments | « chrome/browser/chromeos/login/profile_image_downloader.h ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698