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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract managed user specific stuff into another changelist. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 58c95ba2fe0d7cc7949248bc24955e1a2a023f3d..4f79d6f0c64b7a042c7f41663e7281e140261e93 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1090,6 +1090,7 @@ enum {
case IDC_SHOW_SIGNIN: {
Profile* original_profile =
browser_->profile()->GetOriginalProfile();
+ enable &= original_profile->IsSigninAllowed();
sail 2013/02/08 20:18:57 Don't do this, if chrome::IsCommandEnabled() is no
Adrian Kuegel 2013/02/11 16:47:30 IsCommandEnabled should return the correct value,
[BrowserWindowController updateSigninItem:item
shouldShow:enable
currentProfile:original_profile];

Powered by Google App Engine
This is Rietveld 408576698