Chromium Code Reviews

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/notification_type.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 46 matching lines...)
57 // Whether to display the "Debug" link for app launch behavior. 57 // Whether to display the "Debug" link for app launch behavior.
58 const char kAppsDebug[] = "apps-debug"; 58 const char kAppsDebug[] = "apps-debug";
59 59
60 // Authentication white list for servers 60 // Authentication white list for servers
61 const char kAuthServerWhitelist[] = "auth-server-whitelist"; 61 const char kAuthServerWhitelist[] = "auth-server-whitelist";
62 62
63 // The value of this switch tells the app to listen for and broadcast 63 // The value of this switch tells the app to listen for and broadcast
64 // automation-related messages on IPC channel with the given ID. 64 // automation-related messages on IPC channel with the given ID.
65 const char kAutomationClientChannelID[] = "automation-channel"; 65 const char kAutomationClientChannelID[] = "automation-channel";
66 66
67 // Block non-sandboxed plugins.
68 const char kBlockNonSandboxedPlugins[] = "block-nonsandboxed-plugins";
69
67 // Causes the browser process to throw an assertion on startup. 70 // Causes the browser process to throw an assertion on startup.
68 const char kBrowserAssertTest[] = "assert-test"; 71 const char kBrowserAssertTest[] = "assert-test";
69 72
70 // Causes the browser process to crash on startup. 73 // Causes the browser process to crash on startup.
71 const char kBrowserCrashTest[] = "crash-test"; 74 const char kBrowserCrashTest[] = "crash-test";
72 75
73 // Path to the exe to run for the renderer and plugin subprocesses. 76 // Path to the exe to run for the renderer and plugin subprocesses.
74 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 77 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
75 78
76 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run 79 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run
(...skipping 91 matching lines...)
168 const char kDisableLocalStorage[] = "disable-local-storage"; 171 const char kDisableLocalStorage[] = "disable-local-storage";
169 172
170 // Force logging to be disabled. Logging is enabled by default in debug 173 // Force logging to be disabled. Logging is enabled by default in debug
171 // builds. 174 // builds.
172 const char kDisableLogging[] = "disable-logging"; 175 const char kDisableLogging[] = "disable-logging";
173 176
174 // Whether we should prevent the new tab page from showing the first run 177 // Whether we should prevent the new tab page from showing the first run
175 // notification. 178 // notification.
176 const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; 179 const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run";
177 180
181 // Prevent outdated plugins from running.
182 const char kDisableOutdatedPlugins[] = "disable-outdated-plugins";
183
178 // Prevent plugins from running. 184 // Prevent plugins from running.
179 const char kDisablePlugins[] = "disable-plugins"; 185 const char kDisablePlugins[] = "disable-plugins";
180 186
181 // Disable pop-up blocking. 187 // Disable pop-up blocking.
182 const char kDisablePopupBlocking[] = "disable-popup-blocking"; 188 const char kDisablePopupBlocking[] = "disable-popup-blocking";
183 189
184 // Normally when the user attempts to navigate to a page that was the result of 190 // Normally when the user attempts to navigate to a page that was the result of
185 // a post we prompt to make sure they want to. This switch may be used to 191 // a post we prompt to make sure they want to. This switch may be used to
186 // disable that check. This switch is used during automated testing. 192 // disable that check. This switch is used during automated testing.
187 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; 193 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
(...skipping 932 matching lines...)
1120 1126
1121 // ----------------------------------------------------------------------------- 1127 // -----------------------------------------------------------------------------
1122 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1128 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1123 // 1129 //
1124 // You were going to just dump your switches here, weren't you? Instead, 1130 // You were going to just dump your switches here, weren't you? Instead,
1125 // please put them in alphabetical order above, or in order inside the 1131 // please put them in alphabetical order above, or in order inside the
1126 // appropriate ifdef at the bottom. The order should match the header. 1132 // appropriate ifdef at the bottom. The order should match the header.
1127 // ----------------------------------------------------------------------------- 1133 // -----------------------------------------------------------------------------
1128 1134
1129 } // namespace switches 1135 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine