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

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

Issue 1078713002: Supervised users: Re-check ManagementPolicy when ProfileIsSupervised changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shaving the yak Created 5 years, 8 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.cc » ('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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/avatar_menu.h ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698