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()); |