Index: chrome/test/base/in_process_browser_test.cc |
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc |
index f28dfa11501808de7e3df7a3c91a0b843d8d223e..d0036c414a3597140297d80d6ef6f68ff3bdc6fd 100644 |
--- a/chrome/test/base/in_process_browser_test.cc |
+++ b/chrome/test/base/in_process_browser_test.cc |
@@ -38,6 +38,7 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
#include "content/public/browser/render_process_host.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/test/browser_test_utils.h" |
#include "content/public/test/test_browser_thread.h" |
#include "content/public/test/test_launcher.h" |
@@ -214,7 +215,8 @@ content::BrowserContext* InProcessBrowserTest::GetBrowserContext() { |
} |
content::ResourceContext* InProcessBrowserTest::GetResourceContext() { |
- return browser_->profile()->GetResourceContext(); |
+ return content::BrowserContext::GetDefaultStoragePartition( |
+ browser_->profile())->GetResourceContext(); |
} |
void InProcessBrowserTest::AddTabAtIndexToBrowser( |