OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |