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

Unified Diff: Source/modules/filesystem/EntryArraySync.cpp

Issue 22436002: Replace EntryArray type by an Entry[] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 months 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
« no previous file with comments | « Source/modules/filesystem/EntryArraySync.h ('k') | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/EntryArraySync.cpp
diff --git a/Source/modules/filesystem/EntryArraySync.cpp b/Source/modules/filesystem/EntryArraySync.cpp
index cde013dbc93dbd7f26f02e6256a6da360bc665ba..1b7e45a04570af863138ad94a857b004229d1ca2 100644
--- a/Source/modules/filesystem/EntryArraySync.cpp
+++ b/Source/modules/filesystem/EntryArraySync.cpp
@@ -31,17 +31,15 @@
#include "config.h"
#include "modules/filesystem/EntryArraySync.h"
-#include "modules/filesystem/EntryArray.h"
+#include "modules/filesystem/Entry.h"
namespace WebCore {
-PassRefPtr<EntryArraySync> EntryArraySync::create(EntryArray* entries)
+PassRefPtr<EntryArraySync> EntryArraySync::create(const EntryVector& entries)
{
RefPtr<EntryArraySync> entriesSync = adoptRef(new EntryArraySync());
- if (entries) {
- for (unsigned i = 0; i < entries->length(); ++i)
- entriesSync->append(EntrySync::create(entries->item(i)));
- }
+ for (size_t i = 0; i < entries.size(); ++i)
+ entriesSync->append(EntrySync::create(entries[i].get()));
return entriesSync.release();
}
« no previous file with comments | « Source/modules/filesystem/EntryArraySync.h ('k') | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698