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

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

Issue 355143006: [Password Manager] Add UMA stats to track interaction with synced accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 6 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 e1c765e4507554816cc5d0807f9f96572f568ca6..782c20ef3c88cba6e6335ff70bf8af8b2967c6fd 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -30,6 +30,11 @@ class PasswordManagerClient {
// The default return value is false.
virtual bool IsAutomaticPasswordSavingEnabled() const;
+ // Returns true if |username| and |origin| correspond to the account which is
+ // syncing passwords.
+ virtual bool IsPasswordSyncAccountCredential(
+ const std::string& username, const std::string& origin) const = 0;
+
// Informs the embedder of a password form that can be saved if the user
// allows it. The embedder is not required to prompt the user if it decides
// that this form doesn't need to be saved.

Powered by Google App Engine
This is Rietveld 408576698