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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 2720643003: Call CSD whitelist checking on UI thread and record UMA (Closed)
Patch Set: change source_set name Created 3 years, 10 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | components/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 2ecf2d09f5dcbd4740b732d6729c42d351ee0ecf..635ea1556fafebf85af957cc1e333a424aff716f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -38,6 +38,7 @@
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/common/safebrowsing_constants.h"
#include "components/safe_browsing/common/safebrowsing_switches.h"
+#include "components/safe_browsing/password_protection/password_protection_service.h"
#include "components/safe_browsing_db/database_manager.h"
#include "components/safe_browsing_db/v4_feature_list.h"
#include "components/safe_browsing_db/v4_get_hash_protocol_manager.h"
@@ -328,6 +329,11 @@ void SafeBrowsingService::Initialize() {
navigation_observer_manager_ = new SafeBrowsingNavigationObserverManager();
}
+ // TODO(jialiul): When PasswordProtectionService does more than reporting UMA,
+ // we need to add finch trial to gate its functionality.
+ password_protection_service_ =
+ base::MakeUnique<PasswordProtectionService>(database_manager());
+
services_delegate_->Initialize(v4_enabled_);
services_delegate_->InitializeCsdService(url_request_context_getter_.get());
@@ -447,6 +453,10 @@ SafeBrowsingService::v4_local_database_manager() const {
return services_delegate_->v4_local_database_manager();
}
+PasswordProtectionService* SafeBrowsingService::password_protection_service() {
+ return password_protection_service_.get();
+}
+
std::unique_ptr<TrackedPreferenceValidationDelegate>
SafeBrowsingService::CreatePreferenceValidationDelegate(
Profile* profile) const {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698