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

Unified Diff: content/child/npapi/plugin_host.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 | « content/child/multipart_response_delegate.cc ('k') | content/child/simple_webmimeregistry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_host.cc
diff --git a/content/child/npapi/plugin_host.cc b/content/child/npapi/plugin_host.cc
index e201ffbcd8a8fb1a1d1cc176ba8ce08bce505a9d..e9cdb4adef123ee3ccd96ddb601bccc2151f47b9 100644
--- a/content/child/npapi/plugin_host.cc
+++ b/content/child/npapi/plugin_host.cc
@@ -464,7 +464,8 @@ static NPError PostURLNotify(NPP id,
std::string file_path_ascii(buf);
base::FilePath file_path;
static const char kFileUrlPrefix[] = "file:";
- if (base::StartsWithASCII(file_path_ascii, kFileUrlPrefix, false)) {
+ if (base::StartsWith(file_path_ascii, kFileUrlPrefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
GURL file_url(file_path_ascii);
DCHECK(file_url.SchemeIsFile());
net::FileURLToFilePath(file_url, &file_path);
« no previous file with comments | « content/child/multipart_response_delegate.cc ('k') | content/child/simple_webmimeregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698