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

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

Issue 2040783002: Drop unnecessary override of OnWindowBoundsChanged in NativeWidgetMus::MusWindowObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « ui/views/mus/native_widget_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index a497e2cd25915b9a5e871181598cb309e1d1eb59..4aed38c33ded4d4c58ce732fa4154da1717ce9d1 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -38,7 +38,10 @@ WindowTreeHostMus::WindowTreeHostMus(NativeWidgetMus* native_widget,
// TODO(markdittmer): Use correct device-scale-factor from |window|.
OnAcceleratedWidgetAvailable(accelerated_widget, 1.f);
- SetPlatformWindow(base::WrapUnique(new ui::StubWindow(nullptr)));
+ SetPlatformWindow(base::WrapUnique(new ui::StubWindow(
+ this,
+ false))); // Do not advertise accelerated widget; already set manually.
+
// Initialize the stub platform window bounds to those of the mus::Window.
platform_window()->SetBounds(window->bounds());
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698