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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 2302823003: Only report PasswordState in Sync for UMA+non-custom passphrase users. (Closed)
Patch Set: Created 4 years, 3 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: chrome/browser/password_manager/chrome_password_manager_client.h
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.h b/chrome/browser/password_manager/chrome_password_manager_client.h
index 8688ff83f261bb8cfb09c60243b393f6d25c79e8..091e430f007c03644bc3ba725feacaf13f094248 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.h
+++ b/chrome/browser/password_manager/chrome_password_manager_client.h
@@ -165,6 +165,10 @@ class ChromePasswordManagerClient
bool one_local_credential,
const autofill::PasswordForm* form);
+ // Returns true if this profile has metrics reporting and doesn't have
vabr (Chromium) 2016/09/02 09:12:20 nit: The current phrasing is unclear about the nec
Nathan Parker 2016/09/02 22:42:36 Done.
+ // a custom sync passphrase.
+ static bool ShouldAnnotateNavigationEntries(Profile* profile);
+
Profile* const profile_;
password_manager::PasswordManager password_manager_;
@@ -195,6 +199,9 @@ class ChromePasswordManagerClient
// form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
+ FRIEND_TEST_ALL_PREFIXES(ChromePasswordManagerClientTest,
vabr (Chromium) 2016/09/02 09:12:20 Please do not friend the test. We try hard to elim
Nathan Parker 2016/09/02 22:42:36 Interesting, good idea in general. Done. And I t
+ ShouldAnnotateNavigationEntry);
+
DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
};

Powered by Google App Engine
This is Rietveld 408576698