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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_account_chooser.mm

Issue 23806002: [rAc] Disable sign-in link while the user's signed-in state is unknown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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/autofill/autofill_account_chooser.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_account_chooser.mm b/chrome/browser/ui/cocoa/autofill/autofill_account_chooser.mm
index 782beba08ab63278090618a36d9d7125f52c5664..9444191485a71a1117e82134c36cdc3310c9a93b 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_account_chooser.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_account_chooser.mm
@@ -107,6 +107,7 @@ void AddMenuItem(NSMenu *menu, id target, SEL selector, NSString* title,
NSString* linkTitle =
base::SysUTF16ToNSString(delegate_->SignInLinkText());
[link_ setTitle:linkTitle];
+ [link_ setEnabled:!delegate_->ShouldDisableSignInLink()];
// populate menu
NSMenu* accountMenu = [popup_ attachedMenu];

Powered by Google App Engine
This is Rietveld 408576698