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

Unified Diff: services/files/directory_impl.cc

Issue 1397133002: Remove callers of mojo::Array<size_t> constructor in favor of ::New (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « services/clipboard/clipboard_standalone_impl.cc ('k') | services/files/file_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/directory_impl.cc
diff --git a/services/files/directory_impl.cc b/services/files/directory_impl.cc
index c903a75b76a486edbd18d87133f071d5062393d3..79e523a3ea764cdbf09202b3794120a795275efc 100644
--- a/services/files/directory_impl.cc
+++ b/services/files/directory_impl.cc
@@ -125,7 +125,7 @@ void DirectoryImpl::Read(const ReadCallback& callback) {
return;
}
- Array<DirectoryEntryPtr> result(0);
+ auto result = Array<DirectoryEntryPtr>::New(0);
// Warning: This is not portable (per POSIX.1 -- |buffer| may not be large
// enough), but it's fine for Linux.
« no previous file with comments | « services/clipboard/clipboard_standalone_impl.cc ('k') | services/files/file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698