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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 566933005: Do not display lock for hosted domains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeOS test - part deux Created 6 years, 3 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/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 9771594584064c805c2470ec3c804bb4595d55aa..9670fb9a839d282059e8c66498def918e359db9d 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -1179,7 +1179,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
}
}
currentProfileView = [self createCurrentProfileView:item];
- displayLock = switches::IsNewProfileManagement() && item.signed_in;
+ displayLock = item.signed_in &&
+ profiles::IsLockAvailable(browser_->profile());
} else {
[otherProfiles addObject:[self createOtherProfileView:i]];
}

Powered by Google App Engine
This is Rietveld 408576698