| 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]);
|
|
|