| 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_;
|
| -}
|
|
|