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

Unified Diff: chrome/test/chromedriver/chrome/web_view_impl.cc

Issue 2838893002: Remove base::ListValue::Set(size_t, base::Value*) (Closed)
Patch Set: Android, Fuzzer and JSON Test Fixes Created 3 years, 8 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
Index: chrome/test/chromedriver/chrome/web_view_impl.cc
diff --git a/chrome/test/chromedriver/chrome/web_view_impl.cc b/chrome/test/chromedriver/chrome/web_view_impl.cc
index 219427c8c83ce23a04401b608108025e0640cc6e..24fe39db3491f3833e78889aa5d0d838e381e341 100644
--- a/chrome/test/chromedriver/chrome/web_view_impl.cc
+++ b/chrome/test/chromedriver/chrome/web_view_impl.cc
@@ -376,7 +376,7 @@ Status WebViewImpl::DispatchTouchEvent(const TouchEvent& event) {
point->SetString("state", GetPointStateString(event.type));
point->SetInteger("x", event.x);
point->SetInteger("y", event.y);
- point_list->Set(0, point.release());
+ point_list->Append(std::move(point));
params.Set("touchPoints", point_list.release());
return client_->SendCommand("Input.dispatchTouchEvent", params);
}

Powered by Google App Engine
This is Rietveld 408576698