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(); |
} |