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

Unified Diff: chrome/browser/password_manager/password_store_factory.cc

Issue 1066543004: Update affiliated web credentials when Android credentials are updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo, and too long lines. Created 5 years, 8 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/password_store_factory.cc
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
index 78b24257d321ebcc87ee933bad00940fe3815b1e..bd08fc66a374b69b5a7905663014ce33d6cb217c 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -103,6 +103,12 @@ bool ShouldAffiliationBasedMatchingBeActive(Profile* profile) {
!profile_sync_service->IsUsingSecondaryPassphrase();
}
+bool ShouldPropagatinPasswordChangesToWebCredentialsBeEnabled() {
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ return password_manager::IsPropagatingPasswordChangesToWebCredentialsEnabled(
+ *command_line);
+}
+
void ActivateAffiliationBasedMatching(PasswordStore* password_store,
Profile* profile) {
DCHECK(password_store);
@@ -124,6 +130,8 @@ void ActivateAffiliationBasedMatching(PasswordStore* password_store,
affiliation_service.Pass()));
affiliated_match_helper->Initialize();
password_store->SetAffiliatedMatchHelper(affiliated_match_helper.Pass());
+ password_store->enable_propagating_password_changes_to_web_credentials(
+ ShouldPropagatinPasswordChangesToWebCredentialsBeEnabled());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698