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

Unified Diff: components/password_manager/core/browser/password_manager_client.h

Issue 451853003: [Password Manager] Setup experiment to restrict autofilling of sync credential (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 4 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/password_manager/core/browser/password_manager_client.h
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
index 4607800d7357cba447fc5773ecca73a2414f282b..7fb6ea2965ba6463302305a102cb71ae1a96f83a 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -35,6 +35,10 @@ class PasswordManagerClient {
// always returns true.
virtual bool IsPasswordManagerEnabledForCurrentPage() const;
+ // Return true if |form| should not be available for autofill.
+ virtual bool ShouldFilterAutofillResult(
+ const autofill::PasswordForm& form) const = 0;
+
// Returns true if |username| and |origin| correspond to the account which is
// syncing.
virtual bool IsSyncAccountCredential(

Powered by Google App Engine
This is Rietveld 408576698