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

Unified Diff: webkit/fileapi/mock_file_system_context.cc

Issue 15624003: Validate image files before writing them to media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and rebase Created 7 years, 7 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: webkit/fileapi/mock_file_system_context.cc
diff --git a/webkit/fileapi/mock_file_system_context.cc b/webkit/fileapi/mock_file_system_context.cc
index 39f90169bd7d79bb9e81170b9c3eed604516aeee..b83bdc9f091f2e50b19eaba1d505a13c32ada955 100644
--- a/webkit/fileapi/mock_file_system_context.cc
+++ b/webkit/fileapi/mock_file_system_context.cc
@@ -22,6 +22,14 @@ FileSystemContext* CreateFileSystemContextForTesting(
additional_providers.push_back(
new TestMountPointProvider(
base::MessageLoopProxy::current(), base_path));
+ return CreateFileSystemContextWithAdditionalProvidersForTesting(
+ quota_manager_proxy, additional_providers.Pass(), base_path);
+}
+
+FileSystemContext* CreateFileSystemContextWithAdditionalProvidersForTesting(
+ quota::QuotaManagerProxy* quota_manager_proxy,
+ ScopedVector<FileSystemMountPointProvider> additional_providers,
+ const base::FilePath& base_path) {
return new FileSystemContext(
FileSystemTaskRunners::CreateMockTaskRunners(),
ExternalMountPoints::CreateRefCounted().get(),
« webkit/fileapi/mock_file_system_context.h ('K') | « webkit/fileapi/mock_file_system_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698