Commit 7a4a4942 authored by Tatiana Gornak's avatar Tatiana Gornak Committed by Commit Bot

Fix the crash in the Manual fallback for "Show all passwords".

The AutofillAgent can be null in some cases.

BUG=821502

Change-Id: Iada92ce5889643a3eda1d02cb499a16699e73015
Reviewed-on: https://chromium-review.googlesource.com/997797
Commit-Queue: Vadym Doroshenko <dvadym@chromium.org>
Reviewed-by: default avatarVadym Doroshenko <dvadym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548766}
parent e34f08fa
...@@ -169,6 +169,8 @@ bool ShowAllSavedPasswordsContextMenuEnabled() { ...@@ -169,6 +169,8 @@ bool ShowAllSavedPasswordsContextMenuEnabled() {
void UserTriggeredShowAllSavedPasswordsFromContextMenu( void UserTriggeredShowAllSavedPasswordsFromContextMenu(
autofill::AutofillClient* autofill_client) { autofill::AutofillClient* autofill_client) {
if (!autofill_client)
return;
autofill_client->ExecuteCommand( autofill_client->ExecuteCommand(
autofill::POPUP_ITEM_ID_ALL_SAVED_PASSWORDS_ENTRY); autofill::POPUP_ITEM_ID_ALL_SAVED_PASSWORDS_ENTRY);
password_manager::metrics_util::LogContextOfShowAllSavedPasswordsAccepted( password_manager::metrics_util::LogContextOfShowAllSavedPasswordsAccepted(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment