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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 282 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
283 "461175 AvatarMenu::OnProfileHighResAvatarLoaded")); | 283 "461175 AvatarMenu::OnProfileHighResAvatarLoaded")); |
284 Update(); | 284 Update(); |
285 } | 285 } |
286 | 286 |
287 void AvatarMenu::OnProfileSigninRequiredChanged( | 287 void AvatarMenu::OnProfileSigninRequiredChanged( |
288 const base::FilePath& profile_path) { | 288 const base::FilePath& profile_path) { |
289 Update(); | 289 Update(); |
290 } | 290 } |
291 | 291 |
| 292 void AvatarMenu::OnProfileIsOmittedChanged(const base::FilePath& profile_path) { |
| 293 Update(); |
| 294 } |
| 295 |
292 #if defined(ENABLE_SUPERVISED_USERS) | 296 #if defined(ENABLE_SUPERVISED_USERS) |
293 void AvatarMenu::OnCustodianInfoChanged() { | 297 void AvatarMenu::OnCustodianInfoChanged() { |
294 RebuildMenu(); | 298 RebuildMenu(); |
295 if (observer_) | 299 if (observer_) |
296 observer_->OnAvatarMenuChanged(this); | 300 observer_->OnAvatarMenuChanged(this); |
297 } | 301 } |
298 #endif | 302 #endif |
299 | 303 |
300 void AvatarMenu::Update() { | 304 void AvatarMenu::Update() { |
301 RebuildMenu(); | 305 RebuildMenu(); |
302 if (observer_) | 306 if (observer_) |
303 observer_->OnAvatarMenuChanged(this); | 307 observer_->OnAvatarMenuChanged(this); |
304 } | 308 } |
OLD | NEW |