| Index: chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| diff --git a/chrome/browser/media_gallery/media_file_system_registry_unittest.cc b/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| index d81a63cbd005b34c0e70f253d892cb7a40b7d795..dde70bd28b2efac33e723cdc561d4dab6a5a1e27 100644
|
| --- a/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| +++ b/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| @@ -62,7 +62,11 @@ class TestMediaFileSystemContext : public MediaFileSystemContext {
|
| #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
|
| virtual std::string RegisterFileSystemForMTPDevice(
|
| const std::string& device_id, const FilePath& path,
|
| - scoped_refptr<ScopedMTPDeviceMapEntry>* entry) OVERRIDE;
|
| + const ExtensionGalleriesHost* galleries_host) OVERRIDE;
|
| +
|
| + virtual void RemoveMTPDeviceReferenceForHost(
|
| + const std::string& device_location,
|
| + const chrome::ExtensionGalleriesHost* galleries_host) OVERRIDE;
|
| #endif
|
|
|
| virtual void RevokeFileSystem(const std::string& fsid) OVERRIDE;
|
| @@ -111,12 +115,19 @@ std::string TestMediaFileSystemContext::RegisterFileSystemForMassStorage(
|
| #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
|
| std::string TestMediaFileSystemContext::RegisterFileSystemForMTPDevice(
|
| const std::string& device_id, const FilePath& path,
|
| - scoped_refptr<ScopedMTPDeviceMapEntry>* entry) {
|
| + const ExtensionGalleriesHost* galleries_host) {
|
| CHECK(!MediaStorageUtil::IsMassStorageDevice(device_id));
|
| - DCHECK(entry);
|
| - *entry = registry_->GetOrCreateScopedMTPDeviceMapEntry(path.value());
|
| + registry_->AddGalleriesHostReferenceForMTPDevice(path.value(),
|
| + galleries_host);
|
| return AddFSEntry(device_id, path);
|
| }
|
| +
|
| +void TestMediaFileSystemContext::RemoveMTPDeviceReferenceForHost(
|
| + const std::string& device_location,
|
| + const chrome::ExtensionGalleriesHost* galleries_host) {
|
| + registry_->RemoveGalleriesHostReferenceForMTPDevice(device_location,
|
| + galleries_host);
|
| +}
|
| #endif
|
|
|
| void TestMediaFileSystemContext::RevokeFileSystem(const std::string& fsid) {
|
|
|