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

Unified Diff: components/html_viewer/blink_platform_impl.cc

Issue 1110833003: Move the IsSupported* mime functions out of //net and into //components/mime_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: components/html_viewer/blink_platform_impl.cc
diff --git a/components/html_viewer/blink_platform_impl.cc b/components/html_viewer/blink_platform_impl.cc
index 4f71823663be9dcc6185f4a785c38b9442af4c2a..05e2e51d5387a460521d11d14719ac119b138280 100644
--- a/components/html_viewer/blink_platform_impl.cc
+++ b/components/html_viewer/blink_platform_impl.cc
@@ -19,8 +19,8 @@
#include "components/html_viewer/web_socket_handle_impl.h"
#include "components/html_viewer/web_thread_impl.h"
#include "components/html_viewer/web_url_loader_impl.h"
+#include "components/mime_util/mime_util.h"
#include "net/base/data_url.h"
-#include "net/base/mime_util.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "third_party/WebKit/public/platform/WebWaitableEvent.h"
@@ -229,8 +229,8 @@ blink::WebData BlinkPlatformImpl::parseDataURL(
blink::WebString& mimetype_out,
blink::WebString& charset_out) {
std::string mimetype, charset, data;
- if (net::DataURL::Parse(url, &mimetype, &charset, &data)
- && net::IsSupportedMimeType(mimetype)) {
+ if (net::DataURL::Parse(url, &mimetype, &charset, &data) &&
+ mime_util::IsSupportedMimeType(mimetype)) {
mimetype_out = blink::WebString::fromUTF8(mimetype);
charset_out = blink::WebString::fromUTF8(charset);
return data;

Powered by Google App Engine
This is Rietveld 408576698