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

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

Issue 16466006: Deprecate media_task_runner() from FileSystemTaskRunners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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_file_system_mount_point_provider.cc
diff --git a/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc b/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc
index 56092f5bccb2014e3de4cac3741997a132e919b4..4359760d158b9fdd196076ea0b2ad043b662be17 100644
--- a/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc
+++ b/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc
@@ -38,14 +38,18 @@ using fileapi::FileSystemURL;
namespace chrome {
+const char MediaFileSystemMountPointProvider::kMediaTaskRunnerName[] =
+ "media-task-runner";
const char MediaFileSystemMountPointProvider::kMediaPathFilterKey[] =
"MediaPathFilterKey";
const char MediaFileSystemMountPointProvider::kMTPDeviceDelegateURLKey[] =
"MTPDeviceDelegateKey";
MediaFileSystemMountPointProvider::MediaFileSystemMountPointProvider(
- const base::FilePath& profile_path)
+ const base::FilePath& profile_path,
+ base::SequencedTaskRunner* media_task_runner)
: profile_path_(profile_path),
+ media_task_runner_(media_task_runner),
media_path_filter_(new MediaPathFilter),
media_copy_or_move_file_validator_factory_(new MediaFileValidatorFactory),
native_media_file_util_(new NativeMediaFileUtil()),
@@ -140,7 +144,7 @@ MediaFileSystemMountPointProvider::CreateFileSystemOperation(
base::PlatformFileError* error_code) const {
scoped_ptr<fileapi::FileSystemOperationContext> operation_context(
new fileapi::FileSystemOperationContext(
- context, context->task_runners()->media_task_runner()));
+ context, media_task_runner_.get()));
operation_context->SetUserValue(kMediaPathFilterKey,
media_path_filter_.get());

Powered by Google App Engine
This is Rietveld 408576698