| Index: chrome/browser/process_singleton_posix.cc
|
| diff --git a/chrome/browser/process_singleton_posix.cc b/chrome/browser/process_singleton_posix.cc
|
| index 28946f4f2322c1347ed16b515262ee98ea30e514..6ccc2659d75ee8079721fa21477e4c8b1d943733 100644
|
| --- a/chrome/browser/process_singleton_posix.cc
|
| +++ b/chrome/browser/process_singleton_posix.cc
|
| @@ -58,6 +58,7 @@
|
| #include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/path_service.h"
|
| @@ -65,6 +66,7 @@
|
| #include "base/posix/safe_strerror.h"
|
| #include "base/rand_util.h"
|
| #include "base/sequenced_task_runner_helpers.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_split.h"
|
| @@ -702,12 +704,9 @@ void ProcessSingleton::LinuxWatcher::SocketReader::OnFileCanReadWithoutBlocking(
|
| tokens.erase(tokens.begin());
|
|
|
| // Return to the UI thread to handle opening a new browser tab.
|
| - ui_message_loop_->PostTask(FROM_HERE, base::Bind(
|
| - &ProcessSingleton::LinuxWatcher::HandleMessage,
|
| - parent_,
|
| - current_dir,
|
| - tokens,
|
| - this));
|
| + ui_message_loop_->task_runner()->PostTask(
|
| + FROM_HERE, base::Bind(&ProcessSingleton::LinuxWatcher::HandleMessage,
|
| + parent_, current_dir, tokens, this));
|
| fd_reader_.StopWatchingFileDescriptor();
|
|
|
| // LinuxWatcher::HandleMessage() is in charge of destroying this SocketReader
|
|
|