Index: content/browser/shared_worker/shared_worker_instance_unittest.cc |
diff --git a/content/browser/shared_worker/shared_worker_instance_unittest.cc b/content/browser/shared_worker/shared_worker_instance_unittest.cc |
index 30b0662dd1fc4eb13004fb3c1282dd2533c7d427..8dbfbbdf841788759cc37677d2c16de226f1e18c 100644 |
--- a/content/browser/shared_worker/shared_worker_instance_unittest.cc |
+++ b/content/browser/shared_worker/shared_worker_instance_unittest.cc |
@@ -10,6 +10,7 @@ |
#include "base/strings/string16.h" |
#include "base/strings/utf_string_conversions.h" |
#include "content/browser/shared_worker/worker_storage_partition.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 "testing/gtest/include/gtest/gtest.h" |
@@ -20,15 +21,16 @@ class SharedWorkerInstanceTest : public testing::Test { |
protected: |
SharedWorkerInstanceTest() |
: 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)), |
partition_id_(*partition_.get()) {} |
bool Matches(const SharedWorkerInstance& instance, |