Index: content/browser/service_worker/service_worker_provider_host_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_provider_host_unittest.cc b/content/browser/service_worker/service_worker_provider_host_unittest.cc |
index 9ecf53108b0e724a55036da7e5db1729f76e7db9..36381affadde29b0d594146725220f44fa1125e6 100644 |
--- a/content/browser/service_worker/service_worker_provider_host_unittest.cc |
+++ b/content/browser/service_worker/service_worker_provider_host_unittest.cc |
@@ -17,6 +17,7 @@ |
#include "content/common/url_schemes.h" |
#include "content/public/common/origin_util.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
+#include "content/public/test/test_utils.h" |
#include "content/test/test_content_browser_client.h" |
#include "content/test/test_content_client.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -43,7 +44,7 @@ class ServiceWorkerProviderHostTest : public testing::Test { |
void SetUp() override { |
old_content_browser_client_ = |
SetBrowserClientForTesting(&test_content_browser_client_); |
- RefreshSecuritySchemesForTesting(); |
+ ResetSchemesAndOriginsWhitelist(); |
helper_.reset(new EmbeddedWorkerTestHelper(base::FilePath())); |
context_ = helper_->context(); |
@@ -82,7 +83,7 @@ class ServiceWorkerProviderHostTest : public testing::Test { |
helper_.reset(); |
SetBrowserClientForTesting(old_content_browser_client_); |
// Reset cached security schemes so we don't affect other tests. |
- RefreshSecuritySchemesForTesting(); |
+ ResetSchemesAndOriginsWhitelist(); |
} |
bool PatternHasProcessToRun(const GURL& pattern) const { |