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

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: 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 669d431f743663d06446c41ba1f6a00b78a027c2..f61bca03565cefe841a5851eb5d9a83984f800e8 100644
--- a/webkit/fileapi/mock_file_system_context.cc
+++ b/webkit/fileapi/mock_file_system_context.cc
@@ -4,7 +4,6 @@
#include "webkit/fileapi/mock_file_system_context.h"
-#include "base/memory/scoped_vector.h"
#include "webkit/fileapi/external_mount_points.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
@@ -22,6 +21,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,
Greg Billock 2013/05/22 16:21:59 Does this need to add the TestMountPointProvider?
vandebo (ex-Chrome) 2013/05/22 18:41:17 Added a comment about it being up to the caller.
+ const base::FilePath& base_path) {
return new FileSystemContext(
FileSystemTaskRunners::CreateMockTaskRunners(),
ExternalMountPoints::CreateRefCounted().get(),

Powered by Google App Engine
This is Rietveld 408576698