summaryrefslogtreecommitdiff
path: root/chromium/gin/shell/gin_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gin/shell/gin_main.cc')
-rw-r--r--chromium/gin/shell/gin_main.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/chromium/gin/shell/gin_main.cc b/chromium/gin/shell/gin_main.cc
index 706b86ebc40..e73ce1f6dd0 100644
--- a/chromium/gin/shell/gin_main.cc
+++ b/chromium/gin/shell/gin_main.cc
@@ -8,9 +8,13 @@
#include "base/feature_list.h"
#include "base/files/file_util.h"
#include "base/i18n/icu_util.h"
+#include "base/location.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "gin/array_buffer.h"
#include "gin/modules/console.h"
#include "gin/modules/module_runner_delegate.h"
@@ -93,10 +97,11 @@ int main(int argc, char** argv) {
base::CommandLine::ForCurrentProcess()->GetArgs();
for (base::CommandLine::StringVector::const_iterator it = args.begin();
it != args.end(); ++it) {
- base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- gin::Run, runner.GetWeakPtr(), base::FilePath(*it)));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(gin::Run, runner.GetWeakPtr(), base::FilePath(*it)));
}
- message_loop.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
return 0;
}