Index: chromecast/browser/cast_content_browser_client.cc |
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc |
index 7222054c22a2ecbc60a73b0820668714c5636f2d..bfd37e9319d82515c8f0f21f3c8eded3cfd14950 100644 |
--- a/chromecast/browser/cast_content_browser_client.cc |
+++ b/chromecast/browser/cast_content_browser_client.cc |
@@ -114,6 +114,13 @@ void CastContentBrowserClient::AppendExtraCommandLineSwitches( |
base::CommandLine* browser_command_line = |
base::CommandLine::ForCurrentProcess(); |
+ // IsCrashReporterEnabled() is set when InitCrashReporter() is called, and |
+ // controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore |
+ // it's ok to add switch to every process here. |
+ if (breakpad::IsCrashReporterEnabled()) { |
+ command_line->AppendSwitch(switches::kEnableCrashReporter); |
+ } |
+ |
// Renderer process command-line |
if (process_type == switches::kRendererProcess) { |
// Any browser command-line switches that should be propagated to |