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

Unified Diff: services/js/system/tests/js_to_cpp_tests.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/files/file_impl.cc ('k') | services/native_support/redirectors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/system/tests/js_to_cpp_tests.cc
diff --git a/services/js/system/tests/js_to_cpp_tests.cc b/services/js/system/tests/js_to_cpp_tests.cc
index cc707c8f9c2f7500cd23eb1207b69c48a61dc7fa..50f01f67a1134419a4be252ba54b59413791958a 100644
--- a/services/js/system/tests/js_to_cpp_tests.cc
+++ b/services/js/system/tests/js_to_cpp_tests.cc
@@ -93,7 +93,7 @@ js_to_cpp::EchoArgsPtr BuildSampleEchoArgs() {
args->double_inf = kExpectedDoubleInf;
args->double_nan = kExpectedDoubleNan;
args->name = "coming";
- Array<String> string_array(3);
+ auto string_array = Array<String>::New(3);
string_array[0] = "one";
string_array[1] = "two";
string_array[2] = "three";
« no previous file with comments | « services/files/file_impl.cc ('k') | services/native_support/redirectors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698