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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_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/surfaces_impl.cc ('k') | services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/url_response_disk_cache/url_response_disk_cache_impl.cc
diff --git a/services/url_response_disk_cache/url_response_disk_cache_impl.cc b/services/url_response_disk_cache/url_response_disk_cache_impl.cc
index 795fda4399ce81cb73d21593f29b5bcf50b187c1..7b104b7dc5502c9463976b004c436ba9eee6192a 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_impl.cc
+++ b/services/url_response_disk_cache/url_response_disk_cache_impl.cc
@@ -83,7 +83,7 @@ Array<uint8_t> PathToArray(const base::FilePath& path) {
if (path.empty())
return Array<uint8_t>();
const std::string& string = path.value();
- Array<uint8_t> result(string.size());
+ auto result = Array<uint8_t>::New(string.size());
memcpy(&result.front(), string.data(), string.size());
return result.Pass();
}
« no previous file with comments | « services/surfaces/surfaces_impl.cc ('k') | services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698