| 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
|
|
|