OLD | NEW |
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 Loading... |
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 |
OLD | NEW |