| Index: chrome/browser/media_gallery/linux/mtp_device_object_enumerator.cc
|
| diff --git a/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.cc b/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.cc
|
| index dfbc4078cfcb461bbcaed5480c3b756efecb67d6..faf0d5bf4cbd67bffd61439bc46f59a6d316d910 100644
|
| --- a/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.cc
|
| +++ b/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h"
|
|
|
| +#include "base/logging.h"
|
| +
|
| namespace chrome {
|
|
|
| MTPDeviceObjectEnumerator::MTPDeviceObjectEnumerator(
|
| @@ -36,4 +38,17 @@ base::Time MTPDeviceObjectEnumerator::LastModifiedTime() {
|
| return base::Time::FromTimeT(current_file_info_.modification_time());
|
| }
|
|
|
| +bool MTPDeviceObjectEnumerator::GetEntryId(uint32_t* entry_id) const {
|
| + DCHECK(entry_id);
|
| + if (file_entry_iter_ == file_entries_.end())
|
| + return false;
|
| +
|
| + *entry_id = file_entry_iter_->item_id();
|
| + return true;
|
| +}
|
| +
|
| +bool MTPDeviceObjectEnumerator::HasMoreEntries() const {
|
| + return file_entry_iter_ != file_entries_.end();
|
| +}
|
| +
|
| } // namespace chrome
|
|
|