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

Unified Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2539263005: Makes WindowTreeHostMus supply properties directly to window creation (Closed)
Patch Set: types Created 4 years 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: ui/aura/mus/window_tree_host_mus.cc
diff --git a/ui/aura/mus/window_tree_host_mus.cc b/ui/aura/mus/window_tree_host_mus.cc
index 3fb232b8d427e9082a632cbb360d637f7464d81c..c7d906f65a900e4e2ef37dbc4715a12642b8bbfa 100644
--- a/ui/aura/mus/window_tree_host_mus.cc
+++ b/ui/aura/mus/window_tree_host_mus.cc
@@ -89,7 +89,7 @@ WindowTreeHostMus::WindowTreeHostMus(
const std::map<std::string, std::vector<uint8_t>>* properties)
: WindowTreeHostMus(
static_cast<WindowTreeHostMusDelegate*>(window_tree_client)
- ->CreateWindowPortForTopLevel(),
+ ->CreateWindowPortForTopLevel(properties),
window_tree_client,
display::Screen::GetScreen()->GetPrimaryDisplay().id(),
properties) {}
msw 2016/12/02 00:31:08 The other constructor re-applies these properties;
sky 2016/12/02 01:08:43 Ya, sorry, I agree this is weird. WindowPort is th
msw 2016/12/02 01:21:40 Okay, thanks for the explanation, would a comment

Powered by Google App Engine
This is Rietveld 408576698