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

Side by Side Diff: chrome/common/child_process_logging_mac.mm

Issue 9432033: Add experiments info to crash dumps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Last Few Nits Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/child_process_logging.h ('k') | chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/child_process_logging.h" 5 #include "chrome/common/child_process_logging.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 key_i++; 213 key_i++;
214 } 214 }
215 215
216 // Clear out any stale keys. 216 // Clear out any stale keys.
217 for (; key_i < kMaxSwitches; ++key_i) { 217 for (; key_i < kMaxSwitches; ++key_i) {
218 NSString* key = [NSString stringWithFormat:kSwitchKeyFormat, (key_i + 1)]; 218 NSString* key = [NSString stringWithFormat:kSwitchKeyFormat, (key_i + 1)];
219 ClearCrashKey(key); 219 ClearCrashKey(key);
220 } 220 }
221 } 221 }
222 222
223 void SetExperimentList(const std::vector<string16>& state) {
224 // TODO(mad): Implement this.
225 }
226
223 void SetChannel(const std::string& channel) { 227 void SetChannel(const std::string& channel) {
224 // This should match the corresponding string in breakpad_win.cc. 228 // This should match the corresponding string in breakpad_win.cc.
225 NSString* const kChannelKey = @"channel"; 229 NSString* const kChannelKey = @"channel";
226 230
227 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel)); 231 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel));
228 } 232 }
229 233
230 } // namespace child_process_logging 234 } // namespace child_process_logging
OLDNEW
« no previous file with comments | « chrome/common/child_process_logging.h ('k') | chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698