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 1e7ac11232a285ef5642ba9343494fe680de7a61..32c1eb610a7b3794dc4ef448a4fa826e7108a571 100644 |
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc |
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc |
@@ -64,12 +64,6 @@ |
#include "net/url_request/url_request_context.h" |
#include "third_party/re2/src/re2/re2.h" |
-#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) |
-#include "chrome/browser/browser_process.h" |
-#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
-#include "components/safe_browsing/password_protection/password_protection_service.h" |
-#endif |
- |
#if defined(OS_ANDROID) |
#include "chrome/browser/android/tab_android.h" |
#include "chrome/browser/password_manager/account_chooser_dialog_android.h" |
@@ -182,15 +176,6 @@ |
password_manager::prefs::kCredentialsEnableService, GetPrefs()); |
ReportMetrics(*saving_and_filling_passwords_enabled_, this, profile_); |
driver_factory_->RequestSendLoggingAvailability(); |
- |
-#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) |
- if (CanSetPasswordProtectionService()) { |
- password_reuse_detection_manager_.SetPasswordProtectionService( |
- g_browser_process->safe_browsing_service() |
- ->password_protection_service() |
- ->GetWeakPtr()); |
- } |
-#endif |
} |
ChromePasswordManagerClient::~ChromePasswordManagerClient() {} |
@@ -636,14 +621,6 @@ |
return true; |
} |
-#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) |
-bool ChromePasswordManagerClient::CanSetPasswordProtectionService() { |
- return g_browser_process && g_browser_process->safe_browsing_service() && |
- g_browser_process->safe_browsing_service() |
- ->password_protection_service(); |
-} |
-#endif |
- |
void ChromePasswordManagerClient::AnnotateNavigationEntry( |
bool has_password_field) { |
if (!ShouldAnnotateNavigationEntries(profile_)) |