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

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

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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22800fa4431716c0b489d6fefa725469ce037f06..8dd7ed35788aa67956e822f359a66d82b63da6af 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.h
+++ b/chrome/browser/password_manager/chrome_password_manager_client.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/prefs/pref_member.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
#include "components/password_manager/content/browser/credential_manager_dispatcher.h"
#include "components/password_manager/core/browser/password_manager.h"
@@ -42,7 +43,8 @@ class ChromePasswordManagerClient
// PasswordManagerClient implementation.
bool IsAutomaticPasswordSavingEnabled() const override;
- bool IsPasswordManagerEnabledForCurrentPage() const override;
+ bool IsPasswordManagementEnabledForCurrentPage() const override;
+ bool IsSavingEnabledForCurrentPage() const override;
bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override;
std::string GetSyncUsername() const override;
bool IsSyncAccountCredential(const std::string& username,
@@ -172,6 +174,10 @@ class ChromePasswordManagerClient
// reporting.
bool sync_credential_was_filtered_;
+ // Set to false to disable password saving (will no longer ask if you
+ // want to save passwords but will continue to fill passwords).
+ BooleanPrefMember saving_passwords_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
};
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698