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

Unified Diff: chrome/common/secure_origin_whitelist.cc

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: use struct Created 3 years, 11 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 030151272b9d090e16cfa72953b54621d53c60f1..26572b61cee5f24f5a6605978348c8dc196514e8 100644
--- a/chrome/common/secure_origin_whitelist.cc
+++ b/chrome/common/secure_origin_whitelist.cc
@@ -4,14 +4,12 @@
#include "chrome/common/secure_origin_whitelist.h"
-#include <vector>
-
#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) {
+void GetSecureOriginWhitelist(std::vector<std::string>* origins) {
// If kUnsafelyTreatInsecureOriginAsSecure option is given and
// kUserDataDir is present, add the given origins as trustworthy
// for whitelisting.
@@ -23,7 +21,7 @@ void GetSecureOriginWhitelist(std::set<GURL>* origins) {
switches::kUnsafelyTreatInsecureOriginAsSecure);
for (const std::string& origin : base::SplitString(
origins_str, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL))
- origins->insert(GURL(origin));
+ origins->push_back(origin);
}
}

Powered by Google App Engine
This is Rietveld 408576698