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

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

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: 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 eb96c58a4f0c97a462dd09ac09c009fcf89cda0d..bd8fdcbe65edf3bbe0487adad99e38a2610e0447 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -1057,7 +1057,8 @@ void WindowTreeClient::OnWindowSharedPropertyChanged(
if (ApplyServerChangeToExistingInFlightChange(new_change))
return;
- WindowPrivate(window).LocalSetSharedProperty(name, new_data);
+ WindowPrivate(window).LocalSetSharedProperty(name,
+ new_data ? &*new_data : nullptr);
yzshen1 2017/01/06 19:38:38 nit: &new_data.value()?
Sam McNally 2017/01/09 23:15:15 Done.
}
void WindowTreeClient::OnWindowInputEvent(uint32_t event_id,

Powered by Google App Engine
This is Rietveld 408576698