Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
index 43e8eba330beba77ac5751f807554627f7bc80b6..a8bdf29cda628cc3d43ce3d5fd5ee07fea94c514 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -109,7 +109,7 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
virtual string16 SaveLocallyText() const OVERRIDE; |
virtual string16 SaveLocallyTooltip() const OVERRIDE; |
virtual string16 LegalDocumentsText() OVERRIDE; |
- virtual DialogSignedInState SignedInState() const OVERRIDE; |
+ virtual bool ShouldDisableSignInLink() const OVERRIDE; |
virtual bool ShouldShowSpinner() const OVERRIDE; |
virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; |
virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; |
@@ -283,6 +283,14 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
scoped_ptr<AutofillProfile> billing_profile); |
private: |
+ enum DialogSignedInState { |
+ REQUIRES_RESPONSE, |
+ REQUIRES_SIGN_IN, |
+ REQUIRES_PASSIVE_SIGN_IN, |
+ SIGNED_IN, |
+ SIGN_IN_DISABLED, |
+ }; |
+ |
// Whether or not the current request wants credit info back. |
bool RequestingCreditCardInfo() const; |
@@ -298,6 +306,9 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
// Stop showing sign in flow. |
void HideSignIn(); |
+ // Whether the user is known to be signed in. |
+ DialogSignedInState SignedInState() const; |
+ |
// Handles the SignedInState() on Wallet or sign-in state update. |
// Triggers the user name fetch and passive sign-in. |
void SignedInStateUpdated(); |