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); |
+} |