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

Unified Diff: webkit/fileapi/media/media_path_filter.cc

Issue 10824160: Temporary allow IO for GetMimeTypeFromExtensions in MediaPathFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/media/media_path_filter.cc
diff --git a/webkit/fileapi/media/media_path_filter.cc b/webkit/fileapi/media/media_path_filter.cc
index 1239f83e520d5fee4c73262922904ef0f79ee407..3dd92017cdd7d218bd702db4eb6db81bb7018f2d 100644
--- a/webkit/fileapi/media/media_path_filter.cc
+++ b/webkit/fileapi/media/media_path_filter.cc
@@ -8,6 +8,7 @@
#include <string>
#include "base/string_util.h"
+#include "base/threading/thread_restrictions.h"
#include "net/base/mime_util.h"
namespace fileapi {
@@ -23,6 +24,10 @@ bool IsUnsupportedExtension(const FilePath::StringType& extension) {
} // namespace
MediaPathFilter::MediaPathFilter() {
+ // TODO(tzik): http://crbug.com/140401
+ // Remove this ScopedAllowIO after move this to FILE thread.
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
+
net::GetImageExtensions(&media_file_extensions_);
net::GetAudioExtensions(&media_file_extensions_);
net::GetVideoExtensions(&media_file_extensions_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698