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

Unified Diff: services/surfaces/surfaces_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/surfaces/display_impl.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/surfaces/surfaces_impl.cc
diff --git a/services/surfaces/surfaces_impl.cc b/services/surfaces/surfaces_impl.cc
index 9b806e1e73bd9ccfb47835fe70fe99b378be3ab9..d096eba46ea089c0399c3794b278ef83d6f99618 100644
--- a/services/surfaces/surfaces_impl.cc
+++ b/services/surfaces/surfaces_impl.cc
@@ -67,7 +67,7 @@ void SurfacesImpl::DestroySurface(uint32_t local_id) {
void SurfacesImpl::ReturnResources(const cc::ReturnedResourceArray& resources) {
if (resources.empty() || !returner_)
return;
- mojo::Array<mojo::ReturnedResourcePtr> ret(resources.size());
+ auto ret = mojo::Array<mojo::ReturnedResourcePtr>::New(resources.size());
for (size_t i = 0; i < resources.size(); ++i) {
ret[i] = mojo::ReturnedResource::From(resources[i]);
}
« no previous file with comments | « services/surfaces/display_impl.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698