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

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: Created 8 years, 9 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
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 key_i++; 198 key_i++;
199 } 199 }
200 200
201 // Clear out any stale keys. 201 // Clear out any stale keys.
202 for (; key_i < kMaxSwitches; ++key_i) { 202 for (; key_i < kMaxSwitches; ++key_i) {
203 NSString* key = [NSString stringWithFormat:kSwitchKeyFormat, (key_i + 1)]; 203 NSString* key = [NSString stringWithFormat:kSwitchKeyFormat, (key_i + 1)];
204 ClearCrashKey(key); 204 ClearCrashKey(key);
205 } 205 }
206 } 206 }
207 207
208 void InitExperimentList() {
209 // TODO(mad): Implement this.
210 }
211
212 void AddFieldTrialGroup(const std::string& field_trial_name,
213 const std::string& group_name) {
214 // TODO(mad): Implement this.
215 }
216
208 void SetChannel(const std::string& channel) { 217 void SetChannel(const std::string& channel) {
209 // This should match the corresponding string in breakpad_win.cc. 218 // This should match the corresponding string in breakpad_win.cc.
210 NSString* const kChannelKey = @"channel"; 219 NSString* const kChannelKey = @"channel";
211 220
212 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel)); 221 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel));
213 } 222 }
214 223
215 } // namespace child_process_logging 224 } // namespace child_process_logging
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698