Index: content/shell/shell_browser_context.cc |
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc |
index f45bbb6e0656188aeabe3f2106e8cb942db2e353..c79202cbf8b6973109f2185b6fd3b3041a660f49 100644 |
--- a/content/shell/shell_browser_context.cc |
+++ b/content/shell/shell_browser_context.cc |
@@ -7,6 +7,7 @@ |
#include "base/file_util.h" |
#include "base/logging.h" |
#include "base/path_service.h" |
+#include "base/threading/thread.h" |
#include "content/browser/appcache/chrome_appcache_service.h" |
#include "content/browser/chrome_blob_storage_context.h" |
#include "content/browser/download/download_id_factory.h" |
@@ -139,8 +140,10 @@ net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { |
if (!url_request_getter_) { |
url_request_getter_ = new ShellURLRequestContextGetter( |
GetPath(), |
- shell_main_parts_->io_thread()->message_loop(), |
- shell_main_parts_->file_thread()->message_loop()); |
+ BrowserThread::UnsafeGetBrowserThread( |
+ BrowserThread::IO)->message_loop(), |
+ BrowserThread::UnsafeGetBrowserThread( |
+ BrowserThread::FILE)->message_loop()); |
} |
return url_request_getter_; |
} |