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

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: addressed comments 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..354610bbcd112bfa29c3e1150feed3c81de259f7 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 signin flow. Should not be called if ShouldShowSigninPromo()
+ // returns false.
+ virtual void StartSigninFlow() = 0;
};
} // namespace autofill
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler.cc ('k') | components/autofill/core/browser/autofill_external_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698