Index: chrome/browser/subresource_filter/navigation_throttle_util.cc |
diff --git a/chrome/browser/subresource_filter/navigation_throttle_util.cc b/chrome/browser/subresource_filter/navigation_throttle_util.cc |
index d5a6fc1cbdd83b4406bbe334a8d54fe943e33502..f96014ad2bc4914b896618b93f894cbaa0ee36c5 100644 |
--- a/chrome/browser/subresource_filter/navigation_throttle_util.cc |
+++ b/chrome/browser/subresource_filter/navigation_throttle_util.cc |
@@ -1,9 +1,11 @@ |
-// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
#include "chrome/browser/subresource_filter/navigation_throttle_util.h" |
+#include "base/memory/ptr_util.h" |
+#include "base/timer/timer.h" |
#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
#include "components/safe_browsing_db/database_manager.h" |
#include "components/safe_browsing_db/v4_feature_list.h" |
@@ -20,7 +22,10 @@ content::NavigationThrottle* MaybeCreateSubresourceFilterNavigationThrottle( |
safe_browsing::V4FeatureList::V4UsageStatus::V4_ONLY) { |
return new subresource_filter:: |
SubresourceFilterSafeBrowsingActivationThrottle( |
- navigation_handle, safe_browsing_service->database_manager()); |
+ navigation_handle, |
+ base::MakeUnique<base::Timer>(false /* retain_user_task */, |
+ false /* repeating */), |
+ safe_browsing_service->database_manager()); |
} |
return nullptr; |
} |