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 3fa68d55c61018df3b6c197097715b35bc65b43f..6305aea3cdecbac1544a7c90bf2b1efea863508e 100644 |
--- a/chrome/browser/password_manager/password_manager.cc |
+++ b/chrome/browser/password_manager/password_manager.cc |
@@ -365,15 +365,21 @@ void PasswordManager::OnPasswordFormsRendered( |
UMA_HISTOGRAM_COUNTS("PasswordGeneration.Submitted", 1); |
if (ShouldShowSavePasswordInfoBar()) { |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ #if defined(USE_AURA) |
markusheintz_
2013/12/18 09:32:54
I guess this could be USE_AURA or OS_WIN.
npentrel
2013/12/18 13:28:47
Done.
|
+ NotifyPasswordObserver(PasswordObserver::SAVE_NEW_PASSWORD, |
+ provisional_save_manager_->best_matches(), |
+ provisional_save_manager_->pending_credentials()); |
+ #else |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableSavePasswordBubble)) { |
NotifyPasswordObserver(PasswordObserver::SAVE_NEW_PASSWORD, |
provisional_save_manager_->best_matches(), |
provisional_save_manager_->pending_credentials()); |
- } else { |
- delegate_->AddSavePasswordInfoBarIfPermitted( |
- provisional_save_manager_.release()); |
- } |
+ } else { |
+ delegate_->AddSavePasswordInfoBarIfPermitted( |
+ provisional_save_manager_.release()); |
+ } |
+ #endif |
} else { |
provisional_save_manager_->Save(); |
provisional_save_manager_.reset(); |
@@ -451,11 +457,16 @@ void PasswordManager::Autofill( |
break; |
} |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableSavePasswordBubble)) { |
+ #if defined(USE_AURA) |
markusheintz_
2013/12/18 09:32:54
Same as above
npentrel
2013/12/18 13:28:47
Done.
|
NotifyPasswordObserver(PasswordObserver::AUTOFILL_PASSWORDS, best_matches, |
form_for_autofill); |
- } |
+ #else |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableSavePasswordBubble)) { |
+ NotifyPasswordObserver(PasswordObserver::AUTOFILL_PASSWORDS, best_matches, |
+ form_for_autofill); |
+ } |
+ #endif |
} |
void PasswordManager::UpdateBestMatches( |