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

Unified Diff: extensions/common/csp_validator.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: extensions/common/csp_validator.cc
diff --git a/extensions/common/csp_validator.cc b/extensions/common/csp_validator.cc
index d19c7f27ef803c519421858fa31f4171a208b5c4..c9f54b6fae7449fa8de05a7496255b24990348fe 100644
--- a/extensions/common/csp_validator.cc
+++ b/extensions/common/csp_validator.cc
@@ -66,9 +66,9 @@ bool HasOnlySecureTokens(base::StringTokenizer& tokenizer,
if (source == "'self'" ||
source == "'none'" ||
source == "http://127.0.0.1" ||
- LowerCaseEqualsASCII(source, "blob:") ||
- LowerCaseEqualsASCII(source, "filesystem:") ||
- LowerCaseEqualsASCII(source, "http://localhost") ||
+ base::LowerCaseEqualsASCII(source, "blob:") ||
+ base::LowerCaseEqualsASCII(source, "filesystem:") ||
+ base::LowerCaseEqualsASCII(source, "http://localhost") ||
StartsWithASCII(source, "http://127.0.0.1:", false) ||
StartsWithASCII(source, "http://localhost:", false) ||
StartsWithASCII(source, "https://", true) ||

Powered by Google App Engine
This is Rietveld 408576698