| Index: chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
|
| diff --git a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
|
| index bfce1e4191a460952e2eb6d55a51065828c69a81..3cad4e2d759c3d7abf8eb9bfb7273ce94032ef90 100644
|
| --- a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
|
| +++ b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
|
| @@ -9,7 +9,6 @@
|
| #include <string>
|
| #include <utility>
|
|
|
| -#include "base/memory/linked_ptr.h"
|
| #include "chrome/browser/chromeos/file_system_provider/operations/get_metadata.h"
|
| #include "chrome/common/extensions/api/file_system_provider.h"
|
| #include "chrome/common/extensions/api/file_system_provider_internal.h"
|
| @@ -30,10 +29,9 @@ bool ConvertRequestValueToEntryList(scoped_ptr<RequestValue> value,
|
| if (!params)
|
| return false;
|
|
|
| - for (size_t i = 0; i < params->entries.size(); ++i) {
|
| - const linked_ptr<EntryMetadata> entry_metadata = params->entries[i];
|
| + for (const EntryMetadata& entry_metadata : params->entries) {
|
| if (!ValidateIDLEntryMetadata(
|
| - *entry_metadata,
|
| + entry_metadata,
|
| ProvidedFileSystemInterface::METADATA_FIELD_IS_DIRECTORY |
|
| ProvidedFileSystemInterface::METADATA_FIELD_NAME,
|
| false /* root_entry */)) {
|
| @@ -41,8 +39,8 @@ bool ConvertRequestValueToEntryList(scoped_ptr<RequestValue> value,
|
| }
|
|
|
| storage::DirectoryEntry output_entry;
|
| - output_entry.is_directory = *entry_metadata->is_directory;
|
| - output_entry.name = *entry_metadata->name;
|
| + output_entry.is_directory = *entry_metadata.is_directory;
|
| + output_entry.name = *entry_metadata.name;
|
|
|
| output->push_back(output_entry);
|
| }
|
|
|