| 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 c2b67ed44739b7463c7466529220f9ed7f8cd32f..3c65a30f1e4a308be9f27ddca2a13f7d91a2010a 100644
|
| --- a/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| +++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| @@ -52,6 +52,7 @@
|
| #include "components/version_info/version_info.h"
|
| #include "content/public/browser/child_process_security_policy.h"
|
| #include "content/public/browser/navigation_entry.h"
|
| +#include "content/public/browser/navigation_handle.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/ssl_status.h"
|
| #include "content/public/browser/web_contents.h"
|
| @@ -381,9 +382,11 @@ void ChromePasswordManagerClient::HidePasswordGenerationPopup() {
|
| popup_controller_->HideAndDestroy();
|
| }
|
|
|
| -void ChromePasswordManagerClient::DidNavigateMainFrame(
|
| - const content::LoadCommittedDetails& details,
|
| - const content::FrameNavigateParams& params) {
|
| +void ChromePasswordManagerClient::DidFinishNavigation(
|
| + content::NavigationHandle* navigation_handle) {
|
| + if (!navigation_handle->IsInMainFrame() || !navigation_handle->HasCommitted())
|
| + return;
|
| +
|
| password_reuse_detection_manager_.DidNavigateMainFrame(GetMainFrameURL());
|
| // After some navigations RenderViewHost persists and just adding the observer
|
| // will cause multiple call of OnInputEvent. Since Widget API doesn't allow to
|
|
|