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

Side by Side Diff: content/renderer/renderer_main.cc

Issue 10830318: Use a different algorithm with the low entropy source for field trials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « chrome_frame/test/run_all_unittests.cc ('k') | third_party/mt19937ar/LICENSE » ('j') | no next file with comments »
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 "base/base_switches.h" 5 #include "base/base_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/debug/debugger.h" 7 #include "base/debug/debugger.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/hi_res_timer_manager.h" 9 #include "base/hi_res_timer_manager.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 HighResolutionTimerManager hi_res_timer_manager; 178 HighResolutionTimerManager hi_res_timer_manager;
179 179
180 platform.PlatformInitialize(); 180 platform.PlatformInitialize();
181 181
182 bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox); 182 bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox);
183 platform.InitSandboxTests(no_sandbox); 183 platform.InitSandboxTests(no_sandbox);
184 184
185 // Initialize histogram statistics gathering system. 185 // Initialize histogram statistics gathering system.
186 base::StatisticsRecorder::Initialize(); 186 base::StatisticsRecorder::Initialize();
187 187
188 // Initialize statistical testing infrastructure. We set client_id to the 188 // Initialize statistical testing infrastructure. We set the entropy provider
189 // empty string to disallow the renderer process from creating its own 189 // to NULL to disallow the renderer process from creating its own one-time
190 // one-time randomized trials; they should be created in the browser process. 190 // randomized trials; they should be created in the browser process.
191 base::FieldTrialList field_trial(EmptyString()); 191 base::FieldTrialList field_trial_list(NULL);
192 // Ensure any field trials in browser are reflected into renderer. 192 // Ensure any field trials in browser are reflected into renderer.
193 if (parsed_command_line.HasSwitch(switches::kForceFieldTrials)) { 193 if (parsed_command_line.HasSwitch(switches::kForceFieldTrials)) {
194 std::string persistent = parsed_command_line.GetSwitchValueASCII( 194 std::string persistent = parsed_command_line.GetSwitchValueASCII(
195 switches::kForceFieldTrials); 195 switches::kForceFieldTrials);
196 bool ret = base::FieldTrialList::CreateTrialsFromString(persistent); 196 bool ret = base::FieldTrialList::CreateTrialsFromString(persistent);
197 DCHECK(ret); 197 DCHECK(ret);
198 } 198 }
199 199
200 // Load pepper plugins before engaging the sandbox. 200 // Load pepper plugins before engaging the sandbox.
201 PepperPluginRegistry::GetInstance(); 201 PepperPluginRegistry::GetInstance();
(...skipping 27 matching lines...) Expand all
229 #endif 229 #endif
230 TRACE_EVENT_BEGIN_ETW("RendererMain.START_MSG_LOOP", 0, 0); 230 TRACE_EVENT_BEGIN_ETW("RendererMain.START_MSG_LOOP", 0, 0);
231 MessageLoop::current()->Run(); 231 MessageLoop::current()->Run();
232 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0); 232 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0);
233 } 233 }
234 } 234 }
235 platform.PlatformUninitialize(); 235 platform.PlatformUninitialize();
236 TRACE_EVENT_END_ETW("RendererMain", 0, ""); 236 TRACE_EVENT_END_ETW("RendererMain", 0, "");
237 return 0; 237 return 0;
238 } 238 }
OLDNEW
« no previous file with comments | « chrome_frame/test/run_all_unittests.cc ('k') | third_party/mt19937ar/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698