Index: content/shell/browser/shell_devtools_frontend.cc |
diff --git a/content/shell/browser/shell_devtools_frontend.cc b/content/shell/browser/shell_devtools_frontend.cc |
index 7f75b8f540a2b8e5889b1b2d8d6d1698fcc83fb8..9930db9b98d4949105d5de10c8e51782132d13c5 100644 |
--- a/content/shell/browser/shell_devtools_frontend.cc |
+++ b/content/shell/browser/shell_devtools_frontend.cc |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/content_client.h" |
#include "content/shell/browser/shell.h" |
@@ -227,8 +228,10 @@ void ShellDevToolsFrontend::HandleMessageFromDevToolsFrontend( |
net::URLFetcher* fetcher = |
net::URLFetcher::Create(gurl, net::URLFetcher::GET, this).release(); |
pending_requests_[fetcher] = request_id; |
- fetcher->SetRequestContext(web_contents()->GetBrowserContext()-> |
- GetRequestContext()); |
+ fetcher->SetRequestContext( |
+ BrowserContext::GetDefaultStoragePartition( |
+ web_contents()->GetBrowserContext())-> |
+ GetURLRequestContext()); |
fetcher->SetExtraRequestHeaders(headers); |
fetcher->SaveResponseWithWriter( |
std::unique_ptr<net::URLFetcherResponseWriter>( |