Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: content/shell/shell_browser_context.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix official build, avoid DCHECK in official Linux/ChromeOS builds. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/browser_thread_delegate.h ('k') | content/shell/shell_browser_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_browser_context.cc
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index 0f75d89138a01b152b1261bb9401d608722fa694..f011b32ba7bf466f8aedf98eeb466a164b524862 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -8,6 +8,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"
@@ -140,8 +141,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_;
}
« no previous file with comments | « content/public/browser/browser_thread_delegate.h ('k') | content/shell/shell_browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698