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

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 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 | « components/mime_util/mime_util.cc ('k') | components/password_manager/core/browser/affiliation_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/ppb_nacl_private_impl.cc
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index e40bdd31f89366346e1d817d40496cb421b5f4e3..3d67fc701704b4437d67d557c5a8162e7b84c081 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -610,7 +610,8 @@ std::string PnaclComponentURLToFilename(const std::string& url) {
// generated from ManifestResolveKey or PnaclResources::ReadResourceInfo.
// So, it's safe to just use string parsing operations here instead of
// URL-parsing ones.
- DCHECK(base::StartsWithASCII(url, kPNaClTranslatorBaseUrl, true));
+ DCHECK(base::StartsWith(url, kPNaClTranslatorBaseUrl,
+ base::CompareCase::SENSITIVE));
std::string r = url.substr(std::string(kPNaClTranslatorBaseUrl).length());
// Use white-listed-chars.
« no previous file with comments | « components/mime_util/mime_util.cc ('k') | components/password_manager/core/browser/affiliation_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698