Commit 1212f838 authored by tyoshino@chromium.org's avatar tyoshino@chromium.org

Fix a data URL generation code in DeveloperPrivateAPI

"image" is specified as a MIME type but is invalid. We should just omit
the MIME type parameter.

BUG=377409

Review URL: https://codereview.chromium.org/303483006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273118 0039d316-1c4b-4281-b951-d872f2087c98
parent c6784bf0
...@@ -101,7 +101,7 @@ GURL GetImageURLFromData(const std::string& contents) { ...@@ -101,7 +101,7 @@ GURL GetImageURLFromData(const std::string& contents) {
base::Base64Encode(contents, &contents_base64); base::Base64Encode(contents, &contents_base64);
// TODO(dvh): make use of content::kDataScheme. Filed as crbug/297301. // TODO(dvh): make use of content::kDataScheme. Filed as crbug/297301.
const char kDataURLPrefix[] = "data:image;base64,"; const char kDataURLPrefix[] = "data:;base64,";
return GURL(kDataURLPrefix + contents_base64); return GURL(kDataURLPrefix + contents_base64);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment