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

Unified Diff: content/browser/fileapi/fileapi_message_filter.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
Index: content/browser/fileapi/fileapi_message_filter.cc
diff --git a/content/browser/fileapi/fileapi_message_filter.cc b/content/browser/fileapi/fileapi_message_filter.cc
index 0541c3a9d7c07db8914dc7c8cf257bd572cff014..1babfd5454669950913d90559b765cd992354bc2 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -597,8 +597,8 @@ void FileAPIMessageFilter::OnStartBuildingStream(
const GURL& url, const std::string& content_type) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
// Only an internal Blob URL is expected here. See the BlobURL of the Blink.
- if (!base::StartsWithASCII(url.path(), "blobinternal%3A///",
- true /* case_sensitive */)) {
+ if (!base::StartsWith(url.path(), "blobinternal%3A///",
+ base::CompareCase::SENSITIVE)) {
NOTREACHED() << "Malformed Stream URL: " << url.spec();
bad_message::ReceivedBadMessage(this,
bad_message::FAMF_MALFORMED_STREAM_URL);
« no previous file with comments | « content/browser/download/download_stats.cc ('k') | content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698