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

Unified Diff: content/browser/fileapi/fileapi_message_filter.cc

Issue 1878273002: Remove URLencode/URLdecode for the inner origin of blob: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unescape constants in tests & code Created 4 years, 8 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 318d9566448ae9eca368caf434c75492a03577cf..a504bb9cb586023aa702fb50c55a786d94807e43 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -497,7 +497,7 @@ 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::StartsWith(url.path(), "blobinternal%3A///",
+ if (!base::StartsWith(url.path(), "blobinternal:///",
base::CompareCase::SENSITIVE)) {
NOTREACHED() << "Malformed Stream URL: " << url.spec();
bad_message::ReceivedBadMessage(this,
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | content/browser/fileapi/fileapi_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698