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

Unified Diff: content/common/origin_util.cc

Issue 2157363004: Fix SecureOriginWhiteListTest.UnsafelyTreatInsecureOriginAsSecure to not leak test state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/common/secure_origin_whitelist_unittest.cc ('k') | no next file » | 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 4dfdc6ce8caf7efae0598c82dace3bc6171e8b65..275d28f05d9a8eeb3e698feef3516475a20c8718 100644
--- a/content/common/origin_util.cc
+++ b/content/common/origin_util.cc
@@ -21,6 +21,9 @@ class SchemeAndOriginWhitelist {
~SchemeAndOriginWhitelist() {}
void Reset() {
+ secure_schemes_.clear();
+ secure_origins_.clear();
+ service_worker_schemes_.clear();
GetContentClient()->AddSecureSchemesAndOrigins(&secure_schemes_,
&secure_origins_);
GetContentClient()->AddServiceWorkerSchemes(&service_worker_schemes_);
« no previous file with comments | « chrome/common/secure_origin_whitelist_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698