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

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 2124343002: [Autofill] Implement Credit Card Signin Promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ifdef Created 4 years, 5 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: components/autofill/core/browser/autofill_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index b83d6efb087e4a98f08399a8105c65ae2cd53e83..d668a6348105e5d044c659a44bd1c9f5b66cf273 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -181,6 +181,13 @@ class AutofillClient {
// If the context is secure.
virtual bool IsContextSecure(const GURL& form_origin) = 0;
+
+ // Whether it is appropriate to show a signin promo for this user.
+ virtual bool ShouldShowSigninPromo() = 0;
+
+ // Starts the sign-in flow. Should not be called if ShouldShowSigninPromo()
+ // returns false.
+ virtual void StartSigninFlow() = 0;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698