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

Unified Diff: remoting/host/posix/signal_handler.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
Index: remoting/host/posix/signal_handler.cc
diff --git a/remoting/host/posix/signal_handler.cc b/remoting/host/posix/signal_handler.cc
index 60682871c020618465b843b18204861a894eaf03..15ea4fbca4455977b1608d69790c07cca9b3a345 100644
--- a/remoting/host/posix/signal_handler.cc
+++ b/remoting/host/posix/signal_handler.cc
@@ -91,10 +91,13 @@ bool RegisterSignalHandler(int signal_number, const SignalHandler& handler) {
LOG(ERROR) << "Could not create signal pipe: " << errno;
return false;
}
- MessageLoopForIO* message_loop = MessageLoopForIO::current();
- result = message_loop->WatchFileDescriptor(
- pipe_fd[0], true, MessageLoopForIO::WATCH_READ,
- &g_signal_listener->controller, g_signal_listener);
+ base::MessageLoopForIO* message_loop = base::MessageLoopForIO::current();
+ result =
+ message_loop->WatchFileDescriptor(pipe_fd[0],
+ true,
+ base::MessageLoopForIO::WATCH_READ,
+ &g_signal_listener->controller,
+ g_signal_listener);
if (!result) {
LOG(ERROR) << "Failed to create signal detector task.";
close(pipe_fd[0]);
« no previous file with comments | « remoting/host/policy_hack/policy_watcher_unittest.cc ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698