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

Unified Diff: chrome/browser/media_galleries/fileapi/media_path_filter.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: Rebased 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: chrome/browser/media_galleries/fileapi/media_path_filter.cc
diff --git a/chrome/browser/media_galleries/fileapi/media_path_filter.cc b/chrome/browser/media_galleries/fileapi/media_path_filter.cc
index d31dd83665bda3d61ec5b50becd1b760fa6bc577..0212e1113603514ee0670006c2a3f71c093c8ec0 100644
--- a/chrome/browser/media_galleries/fileapi/media_path_filter.cc
+++ b/chrome/browser/media_galleries/fileapi/media_path_filter.cc
@@ -12,6 +12,7 @@
#include <string>
#include "base/strings/string_util.h"
+#include "components/mime_util/mime_util.h"
#include "net/base/mime_util.h"
namespace {
@@ -79,7 +80,7 @@ const base::FilePath::CharType* const kExtraSupportedAudioExtensions[] = {
bool IsUnsupportedExtension(const base::FilePath::StringType& extension) {
std::string mime_type;
return !net::GetMimeTypeFromExtension(extension, &mime_type) ||
- !net::IsSupportedMimeType(mime_type);
+ !mime_util::IsSupportedMimeType(mime_type);
}
std::vector<base::FilePath::StringType> GetMediaExtensionList(

Powered by Google App Engine
This is Rietveld 408576698