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

Unified Diff: chrome/browser/media_galleries/linux/mtp_device_task_helper.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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/linux/mtp_read_file_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/linux/mtp_device_task_helper.cc
===================================================================
--- chrome/browser/media_galleries/linux/mtp_device_task_helper.cc (revision 194743)
+++ chrome/browser/media_galleries/linux/mtp_device_task_helper.cc (working copy)
@@ -8,6 +8,7 @@
#include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h"
#include "chrome/browser/media_galleries/linux/mtp_read_file_worker.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"
@@ -25,10 +26,7 @@
}
device::MediaTransferProtocolManager* GetMediaTransferProtocolManager() {
- device::MediaTransferProtocolManager* mtp_device_mgr =
- device::MediaTransferProtocolManager::GetInstance();
- DCHECK(mtp_device_mgr);
- return mtp_device_mgr;
+ return StorageMonitor::GetInstance()->media_transfer_protocol_manager();
}
} // namespace
« no previous file with comments | « no previous file | chrome/browser/media_galleries/linux/mtp_read_file_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698