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

Side by Side Diff: chrome/common/child_process_logging_posix.cc

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 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 argv_i < argv.size() && argv_i <= kMaxSwitches; 119 argv_i < argv.size() && argv_i <= kMaxSwitches;
120 ++argv_i) { 120 ++argv_i) {
121 command_line_str += argv[argv_i]; 121 command_line_str += argv[argv_i];
122 // Truncate long switches, align short ones with spaces to be trimmed later. 122 // Truncate long switches, align short ones with spaces to be trimmed later.
123 command_line_str.resize(argv_i * kSwitchLen, ' '); 123 command_line_str.resize(argv_i * kSwitchLen, ' ');
124 } 124 }
125 strncpy(g_switches, command_line_str.c_str(), kMaxSwitchesSize - 1); 125 strncpy(g_switches, command_line_str.c_str(), kMaxSwitchesSize - 1);
126 g_switches[kMaxSwitchesSize - 1] = '\0'; 126 g_switches[kMaxSwitchesSize - 1] = '\0';
127 } 127 }
128 128
129 void InitExperimentList() {
130 // TODO(mad): Implement this.
131 }
132
133 void AddFieldTrialGroup(const std::string& field_trial_name,
134 const std::string& group_name) {
135 // TODO(mad): Implement this.
136 }
137
129 void SetChannel(const std::string& channel) { 138 void SetChannel(const std::string& channel) {
130 strncpy(g_channel, channel.c_str(), kChannelSize - 1); 139 strncpy(g_channel, channel.c_str(), kChannelSize - 1);
131 g_channel[kChannelSize - 1] = '\0'; 140 g_channel[kChannelSize - 1] = '\0';
132 } 141 }
133 142
134 } // namespace child_process_logging 143 } // namespace child_process_logging
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698