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

Unified Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index e0dbb98249b539bd68c5f59d29224ca92394475b..e2a3d23ac2b7f01aa033b9306faafac3eaab2d09 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -1056,7 +1056,8 @@ void WindowTreeClient::OnWindowSharedPropertyChanged(
if (ApplyServerChangeToExistingInFlightChange(new_change))
return;
- WindowPrivate(window).LocalSetSharedProperty(name, new_data);
+ WindowPrivate(window).LocalSetSharedProperty(
+ name, new_data ? &new_data.value() : nullptr);
}
void WindowTreeClient::OnWindowInputEvent(uint32_t event_id,

Powered by Google App Engine
This is Rietveld 408576698