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

Unified Diff: chrome/browser/service/service_process_control.cc

Issue 6901146: Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. This allows us to remov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/automation/automation_provider.cc ('k') | chrome/renderer/devtools_agent_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/service/service_process_control.cc
===================================================================
--- chrome/browser/service/service_process_control.cc (revision 83679)
+++ chrome/browser/service/service_process_control.cc (working copy)
@@ -11,7 +11,6 @@
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/io_thread.h"
#include "chrome/browser/upgrade_detector.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/service_messages.h"
@@ -43,15 +42,13 @@
// Actually going to connect.
VLOG(1) << "Connecting to Service Process IPC Server";
- // Run the IPC channel on the shared IO thread.
- base::Thread* io_thread = g_browser_process->io_thread();
// TODO(hclam): Handle error connecting to channel.
const IPC::ChannelHandle channel_id = GetServiceProcessChannel();
- channel_.reset(
- new IPC::SyncChannel(channel_id, IPC::Channel::MODE_NAMED_CLIENT, this,
- io_thread->message_loop(), true,
- g_browser_process->shutdown_event()));
+ channel_.reset(new IPC::SyncChannel(
+ channel_id, IPC::Channel::MODE_NAMED_CLIENT, this,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), true,
+ g_browser_process->shutdown_event()));
}
void ServiceProcessControl::RunConnectDoneTasks() {
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/renderer/devtools_agent_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698