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

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

Issue 6065004: Block outdated plugins by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add flag to allow outdated plugins Created 10 years 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.h ('k') | chrome/renderer/render_view.cc » ('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 {
11 11
12 // ----------------------------------------------------------------------------- 12 // -----------------------------------------------------------------------------
13 // Can't find the switch you are looking for? try looking in 13 // Can't find the switch you are looking for? try looking in
14 // base/base_switches.cc instead. 14 // base/base_switches.cc instead.
15 // ----------------------------------------------------------------------------- 15 // -----------------------------------------------------------------------------
16 16
17 // Activate (make foreground) myself on launch. Helpful when Chrome 17 // Activate (make foreground) myself on launch. Helpful when Chrome
18 // is launched on the command line (e.g. by Selenium). Only needed on Mac. 18 // is launched on the command line (e.g. by Selenium). Only needed on Mac.
19 const char kActivateOnLaunch[] = "activate-on-launch"; 19 const char kActivateOnLaunch[] = "activate-on-launch";
20 20
21 // By default, file:// URIs cannot read other file:// URIs. This is an 21 // By default, file:// URIs cannot read other file:// URIs. This is an
22 // override for developers who need the old behavior for testing. 22 // override for developers who need the old behavior for testing.
23 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; 23 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files";
24 24
25 // On ChromeOS, file:// access is disabled except for certain whitelisted 25 // On ChromeOS, file:// access is disabled except for certain whitelisted
26 // directories. This switch re-enables file:// for testing. 26 // directories. This switch re-enables file:// for testing.
27 const char kAllowFileAccess[] = "allow-file-access"; 27 const char kAllowFileAccess[] = "allow-file-access";
28 28
29 // Don't block outdated plugins.
30 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
31
29 // Disable checking of the renegotiation extension and any future checks over 32 // Disable checking of the renegotiation extension and any future checks over
30 // and above what a "traditional" SSL stack might do. This has been requested 33 // and above what a "traditional" SSL stack might do. This has been requested
31 // in order to support some web development tools that intercept SSL 34 // in order to support some web development tools that intercept SSL
32 // connections. 35 // connections.
33 const char kAllowSSLMITMProxies[] = "allow-ssl-mitm-proxies"; 36 const char kAllowSSLMITMProxies[] = "allow-ssl-mitm-proxies";
34 37
35 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). 38 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
36 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; 39 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging";
37 40
38 // Allows injecting extensions and user scripts on the extensions 41 // Allows injecting extensions and user scripts on the extensions
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const char kAuthSchemes[] = "auth-schemes"; 80 const char kAuthSchemes[] = "auth-schemes";
78 81
79 // Whitelist of servers which NTLM and Negotiate can automatically authenticate 82 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
80 // with using the default credentials of the currently logged in user. 83 // with using the default credentials of the currently logged in user.
81 const char kAuthServerWhitelist[] = "auth-server-whitelist"; 84 const char kAuthServerWhitelist[] = "auth-server-whitelist";
82 85
83 // The value of this switch tells the app to listen for and broadcast 86 // The value of this switch tells the app to listen for and broadcast
84 // automation-related messages on IPC channel with the given ID. 87 // automation-related messages on IPC channel with the given ID.
85 const char kAutomationClientChannelID[] = "automation-channel"; 88 const char kAutomationClientChannelID[] = "automation-channel";
86 89
87 // Block non-sandboxed plugins.
88 const char kBlockNonSandboxedPlugins[] = "block-nonsandboxed-plugins";
89
90 // Prevent outdated plugins from running.
91 const char kBlockOutdatedPlugins[] = "block-outdated-plugins";
92
93 // Causes the browser process to throw an assertion on startup. 90 // Causes the browser process to throw an assertion on startup.
94 const char kBrowserAssertTest[] = "assert-test"; 91 const char kBrowserAssertTest[] = "assert-test";
95 92
96 // Causes the browser process to crash on startup. 93 // Causes the browser process to crash on startup.
97 const char kBrowserCrashTest[] = "crash-test"; 94 const char kBrowserCrashTest[] = "crash-test";
98 95
99 // Path to the exe to run for the renderer and plugin subprocesses. 96 // Path to the exe to run for the renderer and plugin subprocesses.
100 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 97 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
101 98
102 // How often (in seconds) to check for updates. Should only be used for 99 // How often (in seconds) to check for updates. Should only be used for
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 1361
1365 // ----------------------------------------------------------------------------- 1362 // -----------------------------------------------------------------------------
1366 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1363 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1367 // 1364 //
1368 // You were going to just dump your switches here, weren't you? Instead, 1365 // You were going to just dump your switches here, weren't you? Instead,
1369 // please put them in alphabetical order above, or in order inside the 1366 // please put them in alphabetical order above, or in order inside the
1370 // appropriate ifdef at the bottom. The order should match the header. 1367 // appropriate ifdef at the bottom. The order should match the header.
1371 // ----------------------------------------------------------------------------- 1368 // -----------------------------------------------------------------------------
1372 1369
1373 } // namespace switches 1370 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698