Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 2738073002: Revert of wire PasswordProtectionService into PasswordReuseDetectionManager (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_))
« no previous file with comments | « chrome/browser/password_manager/chrome_password_manager_client.h ('k') | components/password_manager/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698