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

Unified Diff: services/reaper/reaper_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/native_support/redirectors.cc ('k') | services/surfaces/display_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/reaper/reaper_impl.cc
diff --git a/services/reaper/reaper_impl.cc b/services/reaper/reaper_impl.cc
index 08c33c0d8c50359d4706f17742be6713fc7cfe94..ca683d4c5cd0cc2d90ad5202b69ec75b7c2bbf5e 100644
--- a/services/reaper/reaper_impl.cc
+++ b/services/reaper/reaper_impl.cc
@@ -283,7 +283,7 @@ void ReaperImpl::Create(mojo::ApplicationConnection* connection,
void ReaperImpl::DumpNodes(
const mojo::Callback<void(mojo::Array<NodePtr>)>& callback) {
- mojo::Array<NodePtr> result(0u);
+ auto result = mojo::Array<NodePtr>::New(0u);
for (const auto& app : nodes_) {
for (const auto& node_info : app.second) {
NodePtr node(Node::New());
« no previous file with comments | « services/native_support/redirectors.cc ('k') | services/surfaces/display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698