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

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

Issue 10168017: Only enable password generation if password manager and autofill are both (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments Created 8 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 | « chrome/browser/password_manager/password_manager.h ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_manager.cc
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index 1af190b939d091f5ec1dce2f5300427d7434d7ae..806c798aa5e1f6f36994b91e21f067f1c437ed29 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -74,6 +74,11 @@ PasswordManager::PasswordManager(WebContents* web_contents,
PasswordManager::~PasswordManager() {
}
+bool PasswordManager::IsEnabled() const {
+ const Profile* profile = delegate_->GetProfileForPasswordManager();
+ return profile && !profile->IsOffTheRecord() && *password_manager_enabled_;
+}
+
void PasswordManager::ProvisionallySavePassword(const PasswordForm& form) {
if (!IsEnabled())
return;
@@ -240,8 +245,3 @@ void PasswordManager::Autofill(
}
}
}
-
-bool PasswordManager::IsEnabled() const {
- const Profile* profile = delegate_->GetProfileForPasswordManager();
- return profile && !profile->IsOffTheRecord() && *password_manager_enabled_;
-}
« no previous file with comments | « chrome/browser/password_manager/password_manager.h ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698