Index: components/password_manager/core/browser/password_manager.cc |
diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc |
index 01213bb818fa21e91f3e9fc686d37891494326ef..aa5744e18b28bbd180072f8f6e54e81f47647f72 100644 |
--- a/components/password_manager/core/browser/password_manager.cc |
+++ b/components/password_manager/core/browser/password_manager.cc |
@@ -487,7 +487,10 @@ void PasswordManager::OnPasswordFormsRendered( |
if (ShouldPromptUserToSavePassword()) { |
if (logger) |
logger->LogMessage(Logger::STRING_DECISION_ASK); |
- client_->PromptUserToSavePassword(provisional_save_manager_.Pass()); |
+ if (client_->PromptUserToSavePassword(provisional_save_manager_.Pass())) { |
+ if (logger) |
+ logger->LogMessage(Logger::STRING_SHOW_PASSWORD_PROMPT); |
+ } |
} else { |
if (logger) |
logger->LogMessage(Logger::STRING_DECISION_SAVE); |