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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1582403004: Linux: Send the product channel to non-browser processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content_browsertests linking Created 4 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 | components/crash.gypi » ('j') | components/crash.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 4ef4c6f439a3c43abf6ac0db48de5597071e44c3..769938ceb7ad980bf1def0aa05ef054574d692c9 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1399,11 +1399,15 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
}
#elif defined(OS_POSIX)
if (breakpad::IsCrashReporterEnabled()) {
+ std::string switch_value;
scoped_ptr<metrics::ClientInfo> client_info =
GoogleUpdateSettings::LoadMetricsClientInfo();
+ if (client_info)
+ switch_value = client_info->client_id;
+ switch_value.push_back(',');
+ switch_value.append(chrome::GetChannelString());
command_line->AppendSwitchASCII(switches::kEnableCrashReporter,
- client_info ? client_info->client_id
- : std::string());
+ switch_value);
}
#endif
« no previous file with comments | « no previous file | components/crash.gypi » ('j') | components/crash.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698