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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 843173002: Chromecast: propagate kEnableCrashReporter switch to child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698