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

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: Address comments from vasilii@, minor changes. 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..c7f4c04f4f960f7b9d7590637eeba51c517276f3 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 ShouldUpdatingAffiliatedWebCredentialsBeEnabled() {
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ return password_manager::IsUpdatingAffiliatedWebCredentialsEnabled(
+ *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->set_propagating_password_changes_to_web_enabled(
+ ShouldUpdatingAffiliatedWebCredentialsBeEnabled());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698