summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/renderer_main.cc')
-rw-r--r--chrome/renderer/renderer_main.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 8e70dee..dd8a2ba 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -70,6 +70,13 @@ static void HandleRendererErrorTestParameters(const CommandLine& command_line) {
int RendererMain(const MainFunctionParams& parameters) {
const CommandLine& parsed_command_line = parameters.command_line_;
base::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool_;
+
+ // This function allows pausing execution using the --renderer-startup-dialog
+ // flag allowing us to attach a debugger.
+ // Do not move this function down since that would mean we can't easily debug
+ // whatever occurs before it.
+ HandleRendererErrorTestParameters(parsed_command_line);
+
RendererMainPlatformDelegate platform(parameters);
StatsScope<StatsCounterTimer>
@@ -88,8 +95,6 @@ int RendererMain(const MainFunctionParams& parameters) {
bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox);
platform.InitSandboxTests(no_sandbox);
- HandleRendererErrorTestParameters(parsed_command_line);
-
// Initialize histogram statistics gathering system.
// Don't create StatisticsRecorde in the single process mode.
scoped_ptr<StatisticsRecorder> statistics;