| OLD | NEW |
| 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/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/i18n/icu_util.h" | 9 #include "base/i18n/icu_util.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "gin/array_buffer.h" | 12 #include "gin/array_buffer.h" |
| 12 #include "gin/modules/console.h" | 13 #include "gin/modules/console.h" |
| 13 #include "gin/modules/module_runner_delegate.h" | 14 #include "gin/modules/module_runner_delegate.h" |
| 14 #include "gin/public/isolate_holder.h" | 15 #include "gin/public/isolate_holder.h" |
| 15 #include "gin/try_catch.h" | 16 #include "gin/try_catch.h" |
| 16 #include "gin/v8_initializer.h" | 17 #include "gin/v8_initializer.h" |
| 17 | 18 |
| 18 namespace gin { | 19 namespace gin { |
| 19 namespace { | 20 namespace { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 base::CommandLine::ForCurrentProcess()->GetArgs(); | 88 base::CommandLine::ForCurrentProcess()->GetArgs(); |
| 88 for (base::CommandLine::StringVector::const_iterator it = args.begin(); | 89 for (base::CommandLine::StringVector::const_iterator it = args.begin(); |
| 89 it != args.end(); ++it) { | 90 it != args.end(); ++it) { |
| 90 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind( | 91 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind( |
| 91 gin::Run, runner.GetWeakPtr(), base::FilePath(*it))); | 92 gin::Run, runner.GetWeakPtr(), base::FilePath(*it))); |
| 92 } | 93 } |
| 93 | 94 |
| 94 message_loop.RunUntilIdle(); | 95 message_loop.RunUntilIdle(); |
| 95 return 0; | 96 return 0; |
| 96 } | 97 } |
| OLD | NEW |