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/app/breakpad_field_trial_win.h" | 5 #include "chrome/app/breakpad_field_trial_win.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string16.h" |
9 #include "base/string16.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "breakpad/src/client/windows/common/ipc_protocol.h" | 11 #include "breakpad/src/client/windows/common/ipc_protocol.h" |
12 #include "chrome/app/breakpad_win.h" | 12 #include "chrome/app/breakpad_win.h" |
13 #include "chrome/common/child_process_logging.h" | 13 #include "chrome/common/child_process_logging.h" |
14 | 14 |
15 // Sets the breakpad experiment chunks for crash reporting. |chunks| is an | 15 // Sets the breakpad experiment chunks for crash reporting. |chunks| is an |
16 // array of C strings of size |chunk_size| containing the values to set, where | 16 // array of C strings of size |chunk_size| containing the values to set, where |
17 // each entry may contain multiple experiment tuples, with the total number of | 17 // each entry may contain multiple experiment tuples, with the total number of |
18 // experiments indicated by |experiments_chunks|. | 18 // experiments indicated by |experiments_chunks|. |
19 // Note that this is suffixed with "3" due to parameter changes that were made | 19 // Note that this is suffixed with "3" due to parameter changes that were made |
20 // to the predecessor functions. If the signature changes again, use a new name. | 20 // to the predecessor functions. If the signature changes again, use a new name. |
(...skipping 28 matching lines...) Expand all Loading... |
49 namespace testing { | 49 namespace testing { |
50 | 50 |
51 void SetExperimentChunks(const std::vector<string16>& chunks, | 51 void SetExperimentChunks(const std::vector<string16>& chunks, |
52 size_t experiments_count) { | 52 size_t experiments_count) { |
53 std::vector<const wchar_t*> cstrings; | 53 std::vector<const wchar_t*> cstrings; |
54 StringVectorToCStringVector(chunks, &cstrings); | 54 StringVectorToCStringVector(chunks, &cstrings); |
55 ::SetExperimentList3(&cstrings[0], cstrings.size(), experiments_count); | 55 ::SetExperimentList3(&cstrings[0], cstrings.size(), experiments_count); |
56 } | 56 } |
57 | 57 |
58 } // namespace testing | 58 } // namespace testing |
OLD | NEW |