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

Unified Diff: extensions/common/csp_validator.cc

Issue 448853002: Move StringToLowerASCII to 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
« no previous file with comments | « extensions/browser/extension_registry.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/csp_validator.cc
diff --git a/extensions/common/csp_validator.cc b/extensions/common/csp_validator.cc
index 73a508c6ec64b66870c413e26b43e4c1998cb759..d19c7f27ef803c519421858fa31f4171a208b5c4 100644
--- a/extensions/common/csp_validator.cc
+++ b/extensions/common/csp_validator.cc
@@ -42,7 +42,7 @@ bool HasOnlySecureTokens(base::StringTokenizer& tokenizer,
Manifest::Type type) {
while (tokenizer.GetNext()) {
std::string source = tokenizer.token();
- StringToLowerASCII(&source);
+ base::StringToLowerASCII(&source);
// Don't alow whitelisting of all hosts. This boils down to:
// 1. Maximum of 2 '*' characters.
@@ -136,7 +136,7 @@ bool ContentSecurityPolicyIsSecure(const std::string& policy,
continue;
std::string directive_name = tokenizer.token();
- StringToLowerASCII(&directive_name);
+ base::StringToLowerASCII(&directive_name);
if (UpdateStatus(directive_name, tokenizer, &default_src_status, type))
continue;
@@ -176,7 +176,7 @@ bool ContentSecurityPolicyIsSandboxed(
continue;
std::string directive_name = tokenizer.token();
- StringToLowerASCII(&directive_name);
+ base::StringToLowerASCII(&directive_name);
if (directive_name != kSandboxDirectiveName)
continue;
@@ -185,7 +185,7 @@ bool ContentSecurityPolicyIsSandboxed(
while (tokenizer.GetNext()) {
std::string token = tokenizer.token();
- StringToLowerASCII(&token);
+ base::StringToLowerASCII(&token);
// The same origin token negates the sandboxing.
if (token == kAllowSameOriginToken)
« no previous file with comments | « extensions/browser/extension_registry.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698