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

Unified Diff: chrome/browser/media_galleries/linux/mtp_read_file_worker.cc

Issue 14016002: Storage Monitor: Make StorageMonitorLinux own the MediaTransferProtocolManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser_tests Created 7 years, 8 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/linux/mtp_read_file_worker.cc
===================================================================
--- chrome/browser/media_galleries/linux/mtp_read_file_worker.cc (revision 194743)
+++ chrome/browser/media_galleries/linux/mtp_read_file_worker.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "base/safe_numerics.h"
#include "chrome/browser/media_galleries/linux/snapshot_file_details.h"
+#include "chrome/browser/storage_monitor/storage_monitor.h"
#include "content/public/browser/browser_thread.h"
#include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -64,9 +65,9 @@
// |snapshot_file_details| in the same_line.
SnapshotFileDetails* snapshot_file_details_ptr = snapshot_file_details.get();
- device::MediaTransferProtocolManager* mtp_device_mgr =
- device::MediaTransferProtocolManager::GetInstance();
- mtp_device_mgr->ReadFileChunkByPath(
+ device::MediaTransferProtocolManager* mtp_device_manager =
+ StorageMonitor::GetInstance()->media_transfer_protocol_manager();
+ mtp_device_manager->ReadFileChunkByPath(
device_handle_,
snapshot_file_details_ptr->device_file_path(),
snapshot_file_details_ptr->bytes_written(),

Powered by Google App Engine
This is Rietveld 408576698