| Index: components/password_manager/content/browser/content_credential_manager_dispatcher.cc
|
| diff --git a/components/password_manager/content/browser/content_credential_manager_dispatcher.cc b/components/password_manager/content/browser/content_credential_manager_dispatcher.cc
|
| index 38eb692d259ba776ec21e4902993b88e96d0bc6c..be8a06cd46ffac8510fe509845c05145dbf7ef5c 100644
|
| --- a/components/password_manager/content/browser/content_credential_manager_dispatcher.cc
|
| +++ b/components/password_manager/content/browser/content_credential_manager_dispatcher.cc
|
| @@ -77,8 +77,10 @@ void ContentCredentialManagerDispatcher::OnRequestCredential(
|
| DCHECK(request_id);
|
| PasswordStore* store = GetPasswordStore();
|
| if (pending_request_id_ || !store) {
|
| - // TODO(mkwst): Reject the promise if we can't get to the password store, or
|
| - // if we're already requesting credentials.
|
| + web_contents()->GetRenderViewHost()->Send(
|
| + new CredentialManagerMsg_RejectCredentialRequest(
|
| + web_contents()->GetRenderViewHost()->GetRoutingID(), request_id));
|
| + return;
|
| }
|
|
|
| pending_request_id_ = request_id;
|
|
|