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

Unified Diff: net/base/data_url.cc

Issue 1986053003: Remove default charset of dataURL request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for RFC Created 4 years, 7 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 | « no previous file | third_party/WebKit/LayoutTests/fast/loader/data-url-charset.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url.cc
diff --git a/net/base/data_url.cc b/net/base/data_url.cc
index 40911850ff39e1dac100a7ee5a4fa2eaedce6e43..f0841fa1a46fb2c201ac0d68b47df60804b449fc 100644
--- a/net/base/data_url.cc
+++ b/net/base/data_url.cc
@@ -79,8 +79,6 @@ bool DataURL::Parse(const GURL& url, std::string* mime_type,
mime_type->assign("text/plain");
charset->assign("US-ASCII");
}
- if (charset->empty())
- charset->assign("US-ASCII");
// The caller may not be interested in receiving the data.
if (!data)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/loader/data-url-charset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698