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

Unified Diff: remoting/host/setup/start_host.cc

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/setup/win/host_configurer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/start_host.cc
diff --git a/remoting/host/setup/start_host.cc b/remoting/host/setup/start_host.cc
index 256fb3cfb967cefbd3b187164553b2c1243abd82..7f7abe74be6dcc7b573461f344391581ea76679e 100644
--- a/remoting/host/setup/start_host.cc
+++ b/remoting/host/setup/start_host.cc
@@ -63,7 +63,7 @@ std::string ReadString(bool no_echo) {
// Called when the HostStarter has finished.
void OnDone(HostStarter::Result result) {
- if (MessageLoop::current() != g_message_loop) {
+ if (base::MessageLoop::current() != g_message_loop) {
g_message_loop->PostTask(FROM_HERE, base::Bind(&OnDone, result));
return;
}
@@ -143,10 +143,10 @@ int main(int argc, char** argv) {
base::AtExitManager exit_manager;
// Provide message loops and threads for the URLRequestContextGetter.
- MessageLoop message_loop;
+ base::MessageLoop message_loop;
g_message_loop = &message_loop;
base::Thread io_thread("IO thread");
- base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0);
+ base::Thread::Options io_thread_options(base::MessageLoop::TYPE_IO, 0);
io_thread.StartWithOptions(io_thread_options);
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter(
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/setup/win/host_configurer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698