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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 289393002: Remove --no-js-randomness. Only used by perftracker, which is dead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « chrome/common/chrome_switches.cc ('k') | no next file » | 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 "chrome/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 CommandLine* command_line = CommandLine::ForCurrentProcess(); 297 CommandLine* command_line = CommandLine::ForCurrentProcess();
298 if (command_line->HasSwitch(switches::kEnableBenchmarking)) 298 if (command_line->HasSwitch(switches::kEnableBenchmarking))
299 thread->RegisterExtension(extensions_v8::BenchmarkingExtension::Get()); 299 thread->RegisterExtension(extensions_v8::BenchmarkingExtension::Get());
300 if (command_line->HasSwitch(switches::kEnableNetBenchmarking)) 300 if (command_line->HasSwitch(switches::kEnableNetBenchmarking))
301 thread->RegisterExtension(extensions_v8::NetBenchmarkingExtension::Get()); 301 thread->RegisterExtension(extensions_v8::NetBenchmarkingExtension::Get());
302 if (command_line->HasSwitch(switches::kInstantProcess)) 302 if (command_line->HasSwitch(switches::kInstantProcess))
303 thread->RegisterExtension(extensions_v8::SearchBoxExtension::Get()); 303 thread->RegisterExtension(extensions_v8::SearchBoxExtension::Get());
304 304
305 if (command_line->HasSwitch(switches::kPlaybackMode) || 305 if (command_line->HasSwitch(switches::kPlaybackMode) ||
306 command_line->HasSwitch(switches::kRecordMode) || 306 command_line->HasSwitch(switches::kRecordMode)) {
tonyg 2014/05/19 14:38:04 I think these and the entire PlaybackExtension are
Peter Kasting 2014/05/19 14:42:43 In the flags doc these are currently untriaged, an
307 command_line->HasSwitch(switches::kNoJsRandomness)) {
308 thread->RegisterExtension(extensions_v8::PlaybackExtension::Get()); 307 thread->RegisterExtension(extensions_v8::PlaybackExtension::Get());
309 } 308 }
310 309
311 // TODO(guohui): needs to forward the new-profile-management switch to 310 // TODO(guohui): needs to forward the new-profile-management switch to
312 // renderer processes. 311 // renderer processes.
313 if (switches::IsNewProfileManagement()) 312 if (switches::IsNewProfileManagement())
314 thread->RegisterExtension(extensions_v8::PrincipalsExtension::Get()); 313 thread->RegisterExtension(extensions_v8::PrincipalsExtension::Get());
315 314
316 // chrome:, chrome-search:, chrome-devtools:, and chrome-distiller: pages 315 // chrome:, chrome-search:, chrome-devtools:, and chrome-distiller: pages
317 // should not be accessible by normal content, and should also be unable to 316 // should not be accessible by normal content, and should also be unable to
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1443 CommandLine* command_line = CommandLine::ForCurrentProcess();
1445 return !command_line->HasSwitch(extensions::switches::kExtensionProcess); 1444 return !command_line->HasSwitch(extensions::switches::kExtensionProcess);
1446 } 1445 }
1447 1446
1448 blink::WebWorkerPermissionClientProxy* 1447 blink::WebWorkerPermissionClientProxy*
1449 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1448 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1450 content::RenderFrame* render_frame, 1449 content::RenderFrame* render_frame,
1451 blink::WebFrame* frame) { 1450 blink::WebFrame* frame) {
1452 return new WorkerPermissionClientProxy(render_frame, frame); 1451 return new WorkerPermissionClientProxy(render_frame, frame);
1453 } 1452 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698