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

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

Issue 1979153002: Use FileTypePolicies for is_archive and is_supported classifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_by_platform
Patch Set: rebase Created 4 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
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 066ab28dc0c0e048690d318f855a1dc7bad598a1..0910213de4295023c897f0042de0c5390846f5f2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -34,6 +34,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
+#include "chrome/common/safe_browsing/file_type_policies.h"
#include "chrome/common/url_constants.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
@@ -293,6 +294,9 @@ SafeBrowsingService::~SafeBrowsingService() {
}
void SafeBrowsingService::Initialize() {
+ // This manages the lifetime of FileTypePolicies::GlobalInstance()
+ file_type_policies_manager_.reset(new FileTypePoliciesManager());
+
url_request_context_getter_ = new SafeBrowsingURLRequestContextGetter(
g_browser_process->system_request_context());

Powered by Google App Engine
This is Rietveld 408576698