Index: content/browser/shared_worker/shared_worker_service_impl_unittest.cc |
diff --git a/content/browser/shared_worker/shared_worker_service_impl_unittest.cc b/content/browser/shared_worker/shared_worker_service_impl_unittest.cc |
index 990f14aa070c629524f6b900be1291051c61a186..8fcfa4e37060fc9d510cf1a6bbf7044dd2eecb6a 100644 |
--- a/content/browser/shared_worker/shared_worker_service_impl_unittest.cc |
+++ b/content/browser/shared_worker/shared_worker_service_impl_unittest.cc |
@@ -23,6 +23,7 @@ |
#include "content/common/message_port_messages.h" |
#include "content/common/view_messages.h" |
#include "content/common/worker_messages.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/test/test_browser_context.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "content/public/test/test_utils.h" |
@@ -46,15 +47,16 @@ class SharedWorkerServiceImplTest : public testing::Test { |
SharedWorkerServiceImplTest() |
: browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP), |
browser_context_(new TestBrowserContext()), |
- partition_( |
- new WorkerStoragePartition(browser_context_->GetRequestContext(), |
- NULL, |
- NULL, |
- NULL, |
- NULL, |
- NULL, |
- NULL, |
- NULL)) { |
+ partition_(new WorkerStoragePartition( |
+ BrowserContext::GetDefaultStoragePartition(browser_context_.get())-> |
+ GetURLRequestContext(), |
+ NULL, |
+ NULL, |
+ NULL, |
+ NULL, |
+ NULL, |
+ NULL, |
+ NULL)) { |
SharedWorkerServiceImpl::GetInstance() |
->ChangeUpdateWorkerDependencyFuncForTesting( |
&SharedWorkerServiceImplTest::MockUpdateWorkerDependency); |