Chromecast: propagate kEnableCrashReporter switch to child processes.

R=lcwu@chromium.org
BUG=336640

Review URL: https://codereview.chromium.org/843173002

Cr-Commit-Position: refs/heads/master@{#310925}
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 7222054..bfd37e93 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -114,6 +114,13 @@
   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