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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 8392042: Split BrowserThread into public API and private implementation, step 1. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 2 months 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 | « chrome/browser/browser_commands_unittest.cc ('k') | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 17926f766da86b28e8af6dc6ea2d589e2a464c60..c778e9d0b2659d716aeb75373c1cdfcfbca926ef 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -17,8 +17,8 @@
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/automation/automation_provider_list.h"
#include "chrome/browser/background/background_mode_manager.h"
-#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/browser_trial.h"
+#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/chrome_plugin_service_filter.h"
#include "chrome/browser/component_updater/component_updater_configurator.h"
#include "chrome/browser/component_updater/component_updater_service.h"
@@ -71,7 +71,6 @@
#include "chrome/installer/util/google_update_constants.h"
#include "content/browser/browser_child_process_host.h"
#include "content/browser/browser_process_sub_thread.h"
-#include "content/browser/browser_thread.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/debugger/devtools_manager.h"
#include "content/browser/download/download_file_manager.h"
@@ -83,6 +82,7 @@
#include "content/browser/plugin_service.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_details.h"
#include "content/public/common/url_fetcher.h"
#include "ipc/ipc_logging.h"
@@ -836,7 +836,7 @@ void BrowserProcessImpl::CreateFileThread() {
created_file_thread_ = true;
scoped_ptr<base::Thread> thread(
- new BrowserProcessSubThread(BrowserThread::FILE));
+ new content::BrowserProcessSubThread(BrowserThread::FILE));
base::Thread::Options options;
#if defined(OS_WIN)
// On Windows, the FILE thread needs to be have a UI message loop which pumps
@@ -857,7 +857,7 @@ void BrowserProcessImpl::CreateWebSocketProxyThread() {
created_web_socket_proxy_thread_ = true;
scoped_ptr<base::Thread> thread(
- new BrowserProcessSubThread(BrowserThread::WEB_SOCKET_PROXY));
+ new content::BrowserProcessSubThread(BrowserThread::WEB_SOCKET_PROXY));
base::Thread::Options options;
options.message_loop_type = MessageLoop::TYPE_IO;
if (!thread->StartWithOptions(options))
@@ -871,7 +871,7 @@ void BrowserProcessImpl::CreateDBThread() {
created_db_thread_ = true;
scoped_ptr<base::Thread> thread(
- new BrowserProcessSubThread(BrowserThread::DB));
+ new content::BrowserProcessSubThread(BrowserThread::DB));
if (!thread->Start())
return;
db_thread_.swap(thread);
@@ -882,7 +882,7 @@ void BrowserProcessImpl::CreateProcessLauncherThread() {
created_process_launcher_thread_ = true;
scoped_ptr<base::Thread> thread(
- new BrowserProcessSubThread(BrowserThread::PROCESS_LAUNCHER));
+ new content::BrowserProcessSubThread(BrowserThread::PROCESS_LAUNCHER));
if (!thread->Start())
return;
process_launcher_thread_.swap(thread);
@@ -893,7 +893,7 @@ void BrowserProcessImpl::CreateCacheThread() {
created_cache_thread_ = true;
scoped_ptr<base::Thread> thread(
- new BrowserThread(BrowserThread::CACHE));
+ new DeprecatedBrowserThread(BrowserThread::CACHE));
base::Thread::Options options;
options.message_loop_type = MessageLoop::TYPE_IO;
if (!thread->StartWithOptions(options))
« no previous file with comments | « chrome/browser/browser_commands_unittest.cc ('k') | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698