| Index: chrome/browser/password_manager/chrome_password_manager_client.cc
|
| diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| index 31f1893633e9844a030c376eb2034d0de243dc1f..437ae9f877711bc8c2521f9619f7ab9344dbbcf0 100644
|
| --- a/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| +++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| @@ -636,6 +636,12 @@ void ChromePasswordManagerClient::BindCredentialManager(
|
|
|
| ChromePasswordManagerClient* instance =
|
| ChromePasswordManagerClient::FromWebContents(web_contents);
|
| - DCHECK(instance);
|
| +
|
| + // Try to bind to the driver, but if driver is not available for this render
|
| + // frame host, the request will be just dropped. This will cause the message
|
| + // pipe to be closed, which will raise a connection error on the peer side.
|
| + if (!instance)
|
| + return;
|
| +
|
| instance->credential_manager_impl_.BindRequest(std::move(request));
|
| }
|
|
|