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

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

Issue 645853012: Standardize usage of virtual/override/final in gin/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/run_microtasks_observer.h ('k') | gin/shell_runner.h » ('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/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/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 26 matching lines...) Expand all
37 CHECK(base::GetCurrentDirectory(&module_base[0])); 37 CHECK(base::GetCurrentDirectory(&module_base[0]));
38 return module_base; 38 return module_base;
39 } 39 }
40 40
41 class GinShellRunnerDelegate : public ModuleRunnerDelegate { 41 class GinShellRunnerDelegate : public ModuleRunnerDelegate {
42 public: 42 public:
43 GinShellRunnerDelegate() : ModuleRunnerDelegate(GetModuleSearchPaths()) { 43 GinShellRunnerDelegate() : ModuleRunnerDelegate(GetModuleSearchPaths()) {
44 AddBuiltinModule(Console::kModuleName, Console::GetModule); 44 AddBuiltinModule(Console::kModuleName, Console::GetModule);
45 } 45 }
46 46
47 virtual void UnhandledException(ShellRunner* runner, 47 void UnhandledException(ShellRunner* runner, TryCatch& try_catch) override {
48 TryCatch& try_catch) override {
49 ModuleRunnerDelegate::UnhandledException(runner, try_catch); 48 ModuleRunnerDelegate::UnhandledException(runner, try_catch);
50 LOG(ERROR) << try_catch.GetStackTrace(); 49 LOG(ERROR) << try_catch.GetStackTrace();
51 } 50 }
52 51
53 private: 52 private:
54 DISALLOW_COPY_AND_ASSIGN(GinShellRunnerDelegate); 53 DISALLOW_COPY_AND_ASSIGN(GinShellRunnerDelegate);
55 }; 54 };
56 55
57 } // namespace 56 } // namespace
58 } // namespace gin 57 } // namespace gin
(...skipping 20 matching lines...) Expand all
79 CommandLine::StringVector args = CommandLine::ForCurrentProcess()->GetArgs(); 78 CommandLine::StringVector args = CommandLine::ForCurrentProcess()->GetArgs();
80 for (CommandLine::StringVector::const_iterator it = args.begin(); 79 for (CommandLine::StringVector::const_iterator it = args.begin();
81 it != args.end(); ++it) { 80 it != args.end(); ++it) {
82 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind( 81 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
83 gin::Run, runner.GetWeakPtr(), base::FilePath(*it))); 82 gin::Run, runner.GetWeakPtr(), base::FilePath(*it)));
84 } 83 }
85 84
86 message_loop.RunUntilIdle(); 85 message_loop.RunUntilIdle();
87 return 0; 86 return 0;
88 } 87 }
OLDNEW
« no previous file with comments | « gin/run_microtasks_observer.h ('k') | gin/shell_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698