summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_logging_mac.mm
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 00:01:18 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 00:01:18 +0000
commit2ec5a486cf9336a0d0f64ba17d34e0a502041f70 (patch)
tree2c8047c60952f8e4ffd6cba3c58be943105b5f14 /chrome/common/child_process_logging_mac.mm
parentd4a5e0a72efae6f551122a231b63efd63cdf0db4 (diff)
downloadchromium_src-2ec5a486cf9336a0d0f64ba17d34e0a502041f70.zip
chromium_src-2ec5a486cf9336a0d0f64ba17d34e0a502041f70.tar.gz
chromium_src-2ec5a486cf9336a0d0f64ba17d34e0a502041f70.tar.bz2
Add a breakpad key for "channel".
BUG=111756, 96179 TEST=monitor crash server crashes for key. Review URL: http://codereview.chromium.org/9430016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging_mac.mm')
-rw-r--r--chrome/common/child_process_logging_mac.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/child_process_logging_mac.mm b/chrome/common/child_process_logging_mac.mm
index d5326c7..0541977 100644
--- a/chrome/common/child_process_logging_mac.mm
+++ b/chrome/common/child_process_logging_mac.mm
@@ -205,4 +205,11 @@ void SetCommandLine(const CommandLine* command_line) {
}
}
+void SetChannel(const std::string& channel) {
+ // This should match the corresponding string in breakpad_win.cc.
+ NSString* const kChannelKey = @"channel";
+
+ SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel));
+}
+
} // namespace child_process_logging