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

Side by Side Diff: chrome/app/breakpad_field_trial_win.cc

Issue 10422019: Rename some chrome.exe exports: SetCommandLine --> SetCommandLine2, SetExperimentList --> SetExperi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | chrome/app/breakpad_win.cc » ('j') | chrome/app/breakpad_win.cc » ('J')
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/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/string_util.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/stringprintf.h" 10 #include "base/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 extern "C" void __declspec(dllexport) __cdecl SetExperimentList( 15 extern "C" void __declspec(dllexport) __cdecl SetExperimentList2(
Sigurður Ásgeirsson 2012/05/23 21:30:31 Please add a comment here explaining that it's cri
eroman 2012/05/23 21:45:13 Done.
16 const wchar_t** experiment_strings, size_t experiment_strings_size) { 16 const wchar_t** experiment_strings, size_t experiment_strings_size) {
17 // Make sure we were initialized before we start writing data 17 // Make sure we were initialized before we start writing data
18 if (breakpad_win::g_experiment_chunks_offset == 0) 18 if (breakpad_win::g_experiment_chunks_offset == 0)
19 return; 19 return;
20 20
21 size_t num_chunks = 0; 21 size_t num_chunks = 0;
22 size_t current_experiment = 0; 22 size_t current_experiment = 0;
23 string16 current_chunk(google_breakpad::CustomInfoEntry::kValueMaxLength, 0); 23 string16 current_chunk(google_breakpad::CustomInfoEntry::kValueMaxLength, 0);
24 while (current_experiment < experiment_strings_size && 24 while (current_experiment < experiment_strings_size &&
25 num_chunks < kMaxReportedExperimentChunks) { 25 num_chunks < kMaxReportedExperimentChunks) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 base::StringPrintf( 61 base::StringPrintf(
62 L"%d", static_cast<int>(experiment_strings_size)).c_str(), 62 L"%d", static_cast<int>(experiment_strings_size)).c_str(),
63 google_breakpad::CustomInfoEntry::kValueMaxLength); 63 google_breakpad::CustomInfoEntry::kValueMaxLength);
64 } 64 }
65 65
66 namespace testing { 66 namespace testing {
67 67
68 void SetExperimentList(const std::vector<string16>& experiment_strings) { 68 void SetExperimentList(const std::vector<string16>& experiment_strings) {
69 std::vector<const wchar_t*> cstrings; 69 std::vector<const wchar_t*> cstrings;
70 StringVectorToCStringVector(experiment_strings, &cstrings); 70 StringVectorToCStringVector(experiment_strings, &cstrings);
71 ::SetExperimentList(&cstrings[0], cstrings.size()); 71 ::SetExperimentList2(&cstrings[0], cstrings.size());
72 } 72 }
73 73
74 } // namespace testing 74 } // namespace testing
OLDNEW
« no previous file with comments | « no previous file | chrome/app/breakpad_win.cc » ('j') | chrome/app/breakpad_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698