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

Unified Diff: components/password_manager/core/browser/password_generation_manager.cc

Issue 1031153002: [Credential Management] Smart lock save Credentials bubble should not always pop up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/password_manager/core/browser/password_generation_manager.cc
diff --git a/components/password_manager/core/browser/password_generation_manager.cc b/components/password_manager/core/browser/password_generation_manager.cc
index 638822b877ea66acb10772b898ec4d4a6df1985e..fcb9f0af03d88113b94a610c7d3ce22bad2b10a1 100644
--- a/components/password_manager/core/browser/password_generation_manager.cc
+++ b/components/password_manager/core/browser/password_generation_manager.cc
@@ -51,7 +51,7 @@ void PasswordGenerationManager::DetectAccountCreationForms(
// (1) Password sync is enabled, and
// (2) Password saving is enabled.
bool PasswordGenerationManager::IsGenerationEnabled() const {
- if (!driver_->GetPasswordManager()->IsSavingEnabledForCurrentPage()) {
+ if (!client_->IsSavingEnabledForCurrentPage()) {
VLOG(2) << "Generation disabled because password saving is disabled";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698