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 7df089164774f9b8c4c5c23cd98e962cbccce25c..b6c0edbde69cc91e9d1d77476679cc4163a0a78d 100644 |
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc |
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc |
@@ -418,10 +418,8 @@ void ChromePasswordManagerClient::CheckSafeBrowsingReputation( |
safe_browsing::PasswordProtectionService* pps = |
GetPasswordProtectionService(); |
if (pps) { |
- // TODO(jialiul): Pass in web_content() instead of GetMainFrameURL(), such |
- // that web_content can be used to display safe browsing interstitial. |
- pps->MaybeStartPasswordFieldOnFocusRequest(GetMainFrameURL(), form_action, |
- frame_url); |
+ pps->MaybeStartPasswordFieldOnFocusRequest( |
+ web_contents(), GetMainFrameURL(), form_action, frame_url); |
} |
} |
@@ -430,10 +428,8 @@ void ChromePasswordManagerClient::CheckProtectedPasswordEntry( |
safe_browsing::PasswordProtectionService* pps = |
GetPasswordProtectionService(); |
if (pps) { |
- // TODO(jialiul): Pass in web_content() instead of GetMainFrameURL(), such |
- // that web_content can be used to display safe browsing interstitial. |
- pps->MaybeStartProtectedPasswordEntryRequest(GetMainFrameURL(), |
- password_saved_domain); |
+ pps->MaybeStartProtectedPasswordEntryRequest( |
+ web_contents(), GetMainFrameURL(), password_saved_domain); |
} |
} |
#endif |