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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 9020013: Refactor ProfileInfoCacheObserver interface and usage thereof. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: nit + fixed badge update issue Created 9 years 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
« no previous file with comments | « chrome/browser/profiles/profile_shortcut_manager_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/manage_profile_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/manage_profile_handler.cc (revision 115334)
+++ chrome/browser/ui/webui/options/manage_profile_handler.cc (working copy)
@@ -201,8 +201,8 @@
ProfileMetrics::LogProfileAvatarSelection(new_icon_index);
// Updating the profile preference will cause the cache to be updated for
// this preference.
+ cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, false);
pref_service->SetInteger(prefs::kProfileAvatarIndex, new_icon_index);
SteveT 2011/12/22 02:59:07 I had to make this switch because SetInteger(kProf
sail 2011/12/22 04:03:11 But wouldn't it eventually become correct once Set
SteveT 2011/12/22 04:36:24 Hm... So SetIsUsingGAIAPictureOfProfileAtIndex cur
sail 2011/12/22 04:48:28 Really? That's weird. Similar to the name function
sail 2011/12/22 04:48:28 Sounds good. I'm not worried about the actual orde
- cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, false);
}
ProfileMetrics::LogProfileUpdate(profile_file_path);
« no previous file with comments | « chrome/browser/profiles/profile_shortcut_manager_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698