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

Unified Diff: chrome/common/secure_origin_whitelist.cc

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Simplify LoadExtension call Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/secure_origin_whitelist.cc
diff --git a/chrome/common/secure_origin_whitelist.cc b/chrome/common/secure_origin_whitelist.cc
index 3715b3b488d1a622f4df6e5b9b3ca58631bf9b63..030151272b9d090e16cfa72953b54621d53c60f1 100644
--- a/chrome/common/secure_origin_whitelist.cc
+++ b/chrome/common/secure_origin_whitelist.cc
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/strings/string_split.h"
#include "chrome/common/chrome_switches.h"
+#include "extensions/common/constants.h"
void GetSecureOriginWhitelist(std::set<GURL>* origins) {
// If kUnsafelyTreatInsecureOriginAsSecure option is given and
@@ -25,3 +26,8 @@ void GetSecureOriginWhitelist(std::set<GURL>* origins) {
origins->insert(GURL(origin));
}
}
+
+void GetSchemesBypassingSecureContextCheckWhitelist(
+ std::set<std::string>* schemes) {
+ schemes->insert(extensions::kExtensionScheme);
+}

Powered by Google App Engine
This is Rietveld 408576698