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

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

Issue 8080004: Fix bug where --allow-running-insecure-content flag doesn't work against google.com sites in stab... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 10 matching lines...) Expand all
21 // On ChromeOS, file:// access is disabled except for certain whitelisted 21 // On ChromeOS, file:// access is disabled except for certain whitelisted
22 // directories. This switch re-enables file:// for testing. 22 // directories. This switch re-enables file:// for testing.
23 const char kAllowFileAccess[] = "allow-file-access"; 23 const char kAllowFileAccess[] = "allow-file-access";
24 24
25 // Allow non-https URL for background_page for hosted apps. 25 // Allow non-https URL for background_page for hosted apps.
26 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; 26 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page";
27 27
28 // Don't block outdated plugins. 28 // Don't block outdated plugins.
29 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; 29 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
30 30
31 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
32 // URLs. This provides an override to get the old insecure behavior.
33 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
34
31 // Allows injecting extensions and user scripts on the extensions 35 // Allows injecting extensions and user scripts on the extensions
32 // gallery site. Normally prevented for security reasons, but can be 36 // gallery site. Normally prevented for security reasons, but can be
33 // useful for automation testing of the gallery. 37 // useful for automation testing of the gallery.
34 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; 38 const char kAllowScriptingGallery[] = "allow-scripting-gallery";
35 39
36 // Specifies comma separated list of extension ids to grant access to local 40 // Specifies comma separated list of extension ids to grant access to local
37 // websocket proxy. 41 // websocket proxy.
38 const char kAllowWebSocketProxy[] = "allow-websocket-proxy"; 42 const char kAllowWebSocketProxy[] = "allow-websocket-proxy";
39 43
40 // Allow compositing on chrome:// pages. 44 // Allow compositing on chrome:// pages.
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 738
735 // Disable the latest incarnation of the new tab page. Only intended for testing 739 // Disable the latest incarnation of the new tab page. Only intended for testing
736 // use. For TOUCH_UI, the meaning is inverted (i.e. default is to disable NTP4, 740 // use. For TOUCH_UI, the meaning is inverted (i.e. default is to disable NTP4,
737 // and passing the flag will enable it). 741 // and passing the flag will enable it).
738 const char kNewTabPage[] = "new-tab-page"; 742 const char kNewTabPage[] = "new-tab-page";
739 743
740 // Disables the default browser check. Useful for UI/browser tests where we 744 // Disables the default browser check. Useful for UI/browser tests where we
741 // want to avoid having the default browser info-bar displayed. 745 // want to avoid having the default browser info-bar displayed.
742 const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; 746 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
743 747
748 // By default, an https page can load images, fonts or frames from an http page.
749 // This switch overrides this to block this lesser mixed-content problem.
750 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
751
744 // Don't record/playback events when using record & playback. 752 // Don't record/playback events when using record & playback.
745 const char kNoEvents[] = "no-events"; 753 const char kNoEvents[] = "no-events";
746 754
747 // Disables all experiments set on about:flags. Does not disable about:flags 755 // Disables all experiments set on about:flags. Does not disable about:flags
748 // itself. Useful if an experiment makes chrome crash at startup: One can start 756 // itself. Useful if an experiment makes chrome crash at startup: One can start
749 // chrome with --no-experiments, disable the problematic lab at about:flags and 757 // chrome with --no-experiments, disable the problematic lab at about:flags and
750 // then restart chrome without this switch again. 758 // then restart chrome without this switch again.
751 const char kNoExperiments[] = "no-experiments"; 759 const char kNoExperiments[] = "no-experiments";
752 760
753 // whether or not it's actually the first run. Overrides kFirstRun in case 761 // whether or not it's actually the first run. Overrides kFirstRun in case
754 // you're for some reason tempted to pass them both. 762 // you're for some reason tempted to pass them both.
755 const char kNoFirstRun[] = "no-first-run"; 763 const char kNoFirstRun[] = "no-first-run";
756 764
757 // Don't send hyperlink auditing pings 765 // Don't send hyperlink auditing pings
758 const char kNoPings[] = "no-pings"; 766 const char kNoPings[] = "no-pings";
759 767
760 // Don't use a proxy server, always make direct connections. Overrides any 768 // Don't use a proxy server, always make direct connections. Overrides any
761 // other proxy server flags that are passed. 769 // other proxy server flags that are passed.
762 const char kNoProxyServer[] = "no-proxy-server"; 770 const char kNoProxyServer[] = "no-proxy-server";
763 771
772 // Stronger version of insecure content blocking, for the case where the
773 // blocking would only be applied to a whitelist of domains. Switch is
774 // expected to become obsolete once the whitelist goes away.
775 const char kNoRunningInsecureContent[] = "no-running-insecure-content";
776
764 // Disables the service process from adding itself as an autorun process. This 777 // Disables the service process from adding itself as an autorun process. This
765 // does not delete existing autorun registrations, it just prevents the service 778 // does not delete existing autorun registrations, it just prevents the service
766 // from registering a new one. 779 // from registering a new one.
767 const char kNoServiceAutorun[] = "no-service-autorun"; 780 const char kNoServiceAutorun[] = "no-service-autorun";
768 781
769 // Does not automatically open a browser window on startup (used when launching 782 // Does not automatically open a browser window on startup (used when launching
770 // Chrome for the purpose of hosting background apps). 783 // Chrome for the purpose of hosting background apps).
771 const char kNoStartupWindow[] = "no-startup-window"; 784 const char kNoStartupWindow[] = "no-startup-window";
772 785
773 // Show a desktop notification that the cloud print token has expired and 786 // Show a desktop notification that the cloud print token has expired and
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 1253
1241 // ----------------------------------------------------------------------------- 1254 // -----------------------------------------------------------------------------
1242 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1255 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1243 // 1256 //
1244 // You were going to just dump your switches here, weren't you? Instead, 1257 // You were going to just dump your switches here, weren't you? Instead,
1245 // please put them in alphabetical order above, or in order inside the 1258 // please put them in alphabetical order above, or in order inside the
1246 // appropriate ifdef at the bottom. The order should match the header. 1259 // appropriate ifdef at the bottom. The order should match the header.
1247 // ----------------------------------------------------------------------------- 1260 // -----------------------------------------------------------------------------
1248 1261
1249 } // namespace switches 1262 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698