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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

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, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/value_conversions.h" 10 #include "base/value_conversions.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void OnProfileNameChanged(const base::FilePath& profile_path, 188 void OnProfileNameChanged(const base::FilePath& profile_path,
189 const base::string16& old_profile_name) override { 189 const base::string16& old_profile_name) override {
190 user_manager_handler_->SendUserList(); 190 user_manager_handler_->SendUserList();
191 } 191 }
192 192
193 void OnProfileAvatarChanged(const base::FilePath& profile_path) override { 193 void OnProfileAvatarChanged(const base::FilePath& profile_path) override {
194 user_manager_handler_->SendUserList(); 194 user_manager_handler_->SendUserList();
195 } 195 }
196 196
197 void OnProfileHighResAvatarLoaded(
198 const base::FilePath& profile_path) override {
199 user_manager_handler_->SendUserList();
200 }
201
197 void OnProfileSigninRequiredChanged( 202 void OnProfileSigninRequiredChanged(
198 const base::FilePath& profile_path) override { 203 const base::FilePath& profile_path) override {
199 user_manager_handler_->SendUserList(); 204 user_manager_handler_->SendUserList();
200 } 205 }
201 206
202 ProfileManager* profile_manager_; 207 ProfileManager* profile_manager_;
203 208
204 UserManagerScreenHandler* user_manager_handler_; // Weak; owns us. 209 UserManagerScreenHandler* user_manager_handler_; // Weak; owns us.
205 210
206 DISALLOW_COPY_AND_ASSIGN(ProfileUpdateObserver); 211 DISALLOW_COPY_AND_ASSIGN(ProfileUpdateObserver);
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 Profile* profile, Profile::CreateStatus profile_create_status) { 787 Profile* profile, Profile::CreateStatus profile_create_status) {
783 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_); 788 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_);
784 if (browser && browser->window()) { 789 if (browser && browser->window()) {
785 OnBrowserWindowReady(browser); 790 OnBrowserWindowReady(browser);
786 } else { 791 } else {
787 registrar_.Add(this, 792 registrar_.Add(this,
788 chrome::NOTIFICATION_BROWSER_WINDOW_READY, 793 chrome::NOTIFICATION_BROWSER_WINDOW_READY,
789 content::NotificationService::AllSources()); 794 content::NotificationService::AllSources());
790 } 795 }
791 } 796 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698