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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test, added IsOriginSecure plumbing etc Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index a7873c17dd757cbd74cef1330e21f082021df6ba..187356d23c142e527ff680dcc9c0b8cfb750ea13 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1145,6 +1145,14 @@ const char kUninstall[] = "uninstall";
// apps/origins. This should be used only for testing purpose.
const char kUnlimitedStorage[] = "unlimited-storage";
+// Treat given (insecure) origins as secure origins. Multiple origins can be
+// supplied. Has no effect unless --user-data-dir is also supplied.
+// Example:
+// --unsafety-treat-insecure-origin-as-secure=http://a.test,http://b.test \
+// --user-data-dir=/test/only/profile/dir
+const char kUnsafetyTreatInsecureOriginAsSecure[] =
+ "unsafety-treat-insecure-origin-as-secure";
+
// Uses Spdy for the transport protocol instead of HTTP. This is a temporary
// testing flag.
const char kUseSpdy[] = "use-spdy";

Powered by Google App Engine
This is Rietveld 408576698