diff options
Diffstat (limited to 'chromium/components/safe_browsing/password_protection/password_protection_service.cc')
-rw-r--r-- | chromium/components/safe_browsing/password_protection/password_protection_service.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chromium/components/safe_browsing/password_protection/password_protection_service.cc b/chromium/components/safe_browsing/password_protection/password_protection_service.cc index bef34552f5f..4b47d7d3547 100644 --- a/chromium/components/safe_browsing/password_protection/password_protection_service.cc +++ b/chromium/components/safe_browsing/password_protection/password_protection_service.cc @@ -808,18 +808,15 @@ PasswordProtectionService::MaybeCreateNavigationThrottle( request->trigger_type() == safe_browsing::LoginReputationClientRequest::PASSWORD_REUSE_EVENT && request->matches_sync_password()) { - std::unique_ptr<PasswordProtectionNavigationThrottle> throttle = - base::MakeUnique<PasswordProtectionNavigationThrottle>( - navigation_handle, /*is_warning_showing=*/false); - request->AddThrottle(throttle.get()); - return throttle; + return base::MakeUnique<PasswordProtectionNavigationThrottle>( + navigation_handle, request, /*is_warning_showing=*/false); } } for (scoped_refptr<PasswordProtectionRequest> request : warning_requests_) { if (request->web_contents() == web_contents) { return base::MakeUnique<PasswordProtectionNavigationThrottle>( - navigation_handle, /*is_warning_showing=*/true); + navigation_handle, request, /*is_warning_showing=*/true); } } return nullptr; |