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

Unified Diff: content/common/origin_util.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 more tests 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/origin_util.cc
diff --git a/content/common/origin_util.cc b/content/common/origin_util.cc
index 8ae7bece7ec4dd58ad64fa523621d70e8ecb5429..1b16422ed11f209dbc38c3bd7bdb8e898812256d 100644
--- a/content/common/origin_util.cc
+++ b/content/common/origin_util.cc
@@ -59,4 +59,8 @@ bool IsOriginSecure(const GURL& url) {
return false;
}
+void ResetSecureSchemesAndOriginsForTesting() {
+ g_trustworthy_whitelist.Get().Reset();
+}
+
} // namespace content
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698