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

Unified Diff: chrome/browser/media_gallery/linux/mtp_device_operations_utils.cc

Issue 11348337: Move MTPDeviceDelegateImplLinux worker classes to its own files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 years 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_gallery/linux/mtp_device_operations_utils.cc
diff --git a/chrome/browser/media_gallery/linux/mtp_device_operations_utils.cc b/chrome/browser/media_gallery/linux/mtp_device_operations_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c92dda0bcd77d28f8fa88eef43177d35765ca101
--- /dev/null
+++ b/chrome/browser/media_gallery/linux/mtp_device_operations_utils.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h"
+
+#include "chrome/browser/media_transfer_protocol/media_transfer_protocol_manager.h"
+
+namespace chrome {
+
+// Returns MediaTransferProtocolManager instance on success or NULL on failure.
+MediaTransferProtocolManager* GetMediaTransferProtocolManager() {
+ MediaTransferProtocolManager* mtp_device_mgr =
+ MediaTransferProtocolManager::GetInstance();
+ DCHECK(mtp_device_mgr);
+ return mtp_device_mgr;
+}
+
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698