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

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

Issue 2855643002: Very basic change to add a TriggerManager class owned by SafeBrowsingService. (Closed)
Patch Set: Fix copyright date Created 3 years, 7 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/safe_browsing/triggers/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 a4ce33327494b4293c43be5d9564fb9d58f38e36..a6845a2e7520b5f8f38ec318a7935e7689dc5a96 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -39,6 +39,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/triggers/trigger_manager.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"
@@ -329,6 +330,8 @@ void SafeBrowsingService::Initialize() {
services_delegate_->Initialize(v4_enabled_);
services_delegate_->InitializeCsdService(url_request_context_getter_.get());
+ CreateTriggerManager();
+
// Track profile creation and destruction.
profiles_registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CREATED,
content::NotificationService::AllSources());
@@ -776,4 +779,8 @@ void SafeBrowsingService::RemovePasswordProtectionService(Profile* profile) {
password_protection_service_map_.erase(it);
}
+void SafeBrowsingService::CreateTriggerManager() {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ trigger_manager_ = base::MakeUnique<TriggerManager>();
+}
} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | components/safe_browsing/triggers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698