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

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 the correct MessageLoopProxy occurrence this time. 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
« no previous file with comments | « no previous file | components/password_manager/core/browser/affiliated_match_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7acd80df39046c0799e74d025aea236f34b25faa 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 ShouldPropagatingPasswordChangesToWebCredentialsBeEnabled() {
+ 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(
+ ShouldPropagatingPasswordChangesToWebCredentialsBeEnabled());
}
} // namespace
« no previous file with comments | « no previous file | components/password_manager/core/browser/affiliated_match_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698