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

Side by Side Diff: content/public/common/content_switches.cc

Issue 817123003: Remove commandline flag --disable-javascript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unsed variables Created 5 years, 11 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
« no previous file with comments | « content/public/common/content_switches.h ('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 "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Disable the RenderThread's HistogramCustomizer. 163 // Disable the RenderThread's HistogramCustomizer.
164 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; 164 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
165 165
166 // Paint content on the main thread instead of the compositor thread. 166 // Paint content on the main thread instead of the compositor thread.
167 // Overrides the kEnableImplSidePainting flag. 167 // Overrides the kEnableImplSidePainting flag.
168 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; 168 const char kDisableImplSidePainting[] = "disable-impl-side-painting";
169 169
170 // Prevent Java from running. 170 // Prevent Java from running.
171 const char kDisableJava[] = "disable-java"; 171 const char kDisableJava[] = "disable-java";
172 172
173 // Don't execute JavaScript (browser JS like the new tab page still runs).
174 const char kDisableJavaScript[] = "disable-javascript";
175
176 // Don't kill a child process when it sends a bad IPC message. Apart 173 // Don't kill a child process when it sends a bad IPC message. Apart
177 // from testing, it is a bad idea from a security perspective to enable 174 // from testing, it is a bad idea from a security perspective to enable
178 // this switch. 175 // this switch.
179 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; 176 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";
180 177
181 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). 178 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
182 const char kDisablePrefixedEncryptedMedia[] = 179 const char kDisablePrefixedEncryptedMedia[] =
183 "disable-prefixed-encrypted-media"; 180 "disable-prefixed-encrypted-media";
184 181
185 // Disables LCD text. 182 // Disables LCD text.
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) 987 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown))
991 return false; 988 return false;
992 // Default. 989 // Default.
993 return group_name == "Enabled"; 990 return group_name == "Enabled";
994 } 991 }
995 #endif 992 #endif
996 993
997 // Don't dump stuff here, follow the same order as the header. 994 // Don't dump stuff here, follow the same order as the header.
998 995
999 } // namespace switches 996 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698