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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm

Issue 861053004: [Profiles] Send out less profile avatar related notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mike nit Created 5 years, 11 months 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/ui/cocoa/profiles/avatar_base_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
index 0482cbc6b975c0c84aea88c212c23b83a6dafbda..befd61c14cc4fbffde68d1d0b2431d0d4f5abc4d 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
@@ -93,7 +93,7 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver,
}
void OnProfileAvatarChanged(const base::FilePath& profile_path) override {
- if (profile_->GetPath() == profile_path)
+ if (!switches::IsNewAvatarMenu() && profile_->GetPath() == profile_path)
[avatarController_ updateAvatarButtonAndLayoutParent:YES];
}
« no previous file with comments | « chrome/browser/profiles/profile_info_cache_unittest.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698