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

Side by Side Diff: gin/shell/gin_main.cc

Issue 2087293002: Remove calls to deprecated MessageLoop methods in gin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « gin/modules/timer_unittest.cc ('k') | gin/test/file_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/i18n/icu_util.h" 10 #include "base/i18n/icu_util.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h"
15 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
16 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
17 #include "gin/array_buffer.h" 18 #include "gin/array_buffer.h"
18 #include "gin/modules/console.h" 19 #include "gin/modules/console.h"
19 #include "gin/modules/module_runner_delegate.h" 20 #include "gin/modules/module_runner_delegate.h"
20 #include "gin/public/isolate_holder.h" 21 #include "gin/public/isolate_holder.h"
21 #include "gin/try_catch.h" 22 #include "gin/try_catch.h"
22 #include "gin/v8_initializer.h" 23 #include "gin/v8_initializer.h"
23 24
24 namespace gin { 25 namespace gin {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 base::CommandLine::StringVector args = 96 base::CommandLine::StringVector args =
96 base::CommandLine::ForCurrentProcess()->GetArgs(); 97 base::CommandLine::ForCurrentProcess()->GetArgs();
97 for (base::CommandLine::StringVector::const_iterator it = args.begin(); 98 for (base::CommandLine::StringVector::const_iterator it = args.begin();
98 it != args.end(); ++it) { 99 it != args.end(); ++it) {
99 base::ThreadTaskRunnerHandle::Get()->PostTask( 100 base::ThreadTaskRunnerHandle::Get()->PostTask(
100 FROM_HERE, 101 FROM_HERE,
101 base::Bind(gin::Run, runner.GetWeakPtr(), base::FilePath(*it))); 102 base::Bind(gin::Run, runner.GetWeakPtr(), base::FilePath(*it)));
102 } 103 }
103 104
104 message_loop.RunUntilIdle(); 105 base::RunLoop().RunUntilIdle();
105 return 0; 106 return 0;
106 } 107 }
OLDNEW
« no previous file with comments | « gin/modules/timer_unittest.cc ('k') | gin/test/file_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698