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

Side by Side Diff: chrome/browser/profiles/avatar_menu.cc

Issue 1117453002: Add gaia_id to ProfileInfoCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 7 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/profiles/avatar_menu.h ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/profiles/avatar_menu.h" 5 #include "chrome/browser/profiles/avatar_menu.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/i18n/case_conversion.h" 8 #include "base/i18n/case_conversion.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/profiler/scoped_tracker.h" 10 #include "base/profiler/scoped_tracker.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 void AvatarMenu::OnProfileWasRemoved(const base::FilePath& profile_path, 259 void AvatarMenu::OnProfileWasRemoved(const base::FilePath& profile_path,
260 const base::string16& profile_name) { 260 const base::string16& profile_name) {
261 Update(); 261 Update();
262 } 262 }
263 263
264 void AvatarMenu::OnProfileNameChanged(const base::FilePath& profile_path, 264 void AvatarMenu::OnProfileNameChanged(const base::FilePath& profile_path,
265 const base::string16& old_profile_name) { 265 const base::string16& old_profile_name) {
266 Update(); 266 Update();
267 } 267 }
268 268
269 void AvatarMenu::OnProfileUserNameChanged(const base::FilePath& profile_path) { 269 void AvatarMenu::OnProfileAuthInfoChanged(const base::FilePath& profile_path) {
270 Update(); 270 Update();
271 } 271 }
272 272
273 void AvatarMenu::OnProfileAvatarChanged(const base::FilePath& profile_path) { 273 void AvatarMenu::OnProfileAvatarChanged(const base::FilePath& profile_path) {
274 Update(); 274 Update();
275 } 275 }
276 276
277 void AvatarMenu::OnProfileHighResAvatarLoaded( 277 void AvatarMenu::OnProfileHighResAvatarLoaded(
278 const base::FilePath& profile_path) { 278 const base::FilePath& profile_path) {
279 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/461175 279 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/461175
(...skipping 19 matching lines...) Expand all
299 if (observer_) 299 if (observer_)
300 observer_->OnAvatarMenuChanged(this); 300 observer_->OnAvatarMenuChanged(this);
301 } 301 }
302 #endif 302 #endif
303 303
304 void AvatarMenu::Update() { 304 void AvatarMenu::Update() {
305 RebuildMenu(); 305 RebuildMenu();
306 if (observer_) 306 if (observer_)
307 observer_->OnAvatarMenuChanged(this); 307 observer_->OnAvatarMenuChanged(this);
308 } 308 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/avatar_menu.h ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698