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

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

Issue 2654993002: Remove --allow-file-access and accompanying logic (Closed)
Patch Set: Created 3 years, 10 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 | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_launcher.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) 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/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 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 10 matching lines...) Expand all
21 // 21 //
22 // When commenting your switch, please use the same voice as surrounding 22 // When commenting your switch, please use the same voice as surrounding
23 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll 23 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll
24 // all work out. 24 // all work out.
25 // ----------------------------------------------------------------------------- 25 // -----------------------------------------------------------------------------
26 26
27 // Allows third-party content included on a page to prompt for a HTTP basic 27 // Allows third-party content included on a page to prompt for a HTTP basic
28 // auth username/password pair. 28 // auth username/password pair.
29 const char kAllowCrossOriginAuthPrompt[] = "allow-cross-origin-auth-prompt"; 29 const char kAllowCrossOriginAuthPrompt[] = "allow-cross-origin-auth-prompt";
30 30
31 // On ChromeOS, file:// access is disabled except for certain whitelisted
32 // directories. This switch re-enables file:// for testing.
33 const char kAllowFileAccess[] = "allow-file-access";
34
35 // Allow non-secure origins to use the screen capture API and the desktopCapture 31 // Allow non-secure origins to use the screen capture API and the desktopCapture
36 // extension API. 32 // extension API.
37 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture"; 33 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
38 34
39 // Don't block outdated plugins. 35 // Don't block outdated plugins.
40 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; 36 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
41 37
42 // By default, an https page cannot run JavaScript, CSS or plugins from http 38 // By default, an https page cannot run JavaScript, CSS or plugins from http
43 // URLs. This provides an override to get the old insecure behavior. 39 // URLs. This provides an override to get the old insecure behavior.
44 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; 40 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 1216
1221 // ----------------------------------------------------------------------------- 1217 // -----------------------------------------------------------------------------
1222 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1218 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1223 // 1219 //
1224 // You were going to just dump your switches here, weren't you? Instead, please 1220 // You were going to just dump your switches here, weren't you? Instead, please
1225 // put them in alphabetical order above, or in order inside the appropriate 1221 // put them in alphabetical order above, or in order inside the appropriate
1226 // ifdef at the bottom. The order should match the header. 1222 // ifdef at the bottom. The order should match the header.
1227 // ----------------------------------------------------------------------------- 1223 // -----------------------------------------------------------------------------
1228 1224
1229 } // namespace switches 1225 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698