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

Unified Diff: chrome/browser/media_galleries/fileapi/media_path_filter.cc

Issue 877323009: Extracted media mime type checks from net/base/ into media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fixes #1 Created 5 years, 10 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..bdfa9933f841aef150ef681009a8092af5579f18 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 "content/common/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);
+ !content::IsSupportedMimeType(mime_type);
}
std::vector<base::FilePath::StringType> GetMediaExtensionList(

Powered by Google App Engine
This is Rietveld 408576698