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

Unified Diff: trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 137893014: Back out trunk r245028 (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (revision 245213)
+++ trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (working copy)
@@ -88,6 +88,7 @@
}
DesktopWindowTreeHostWin::~DesktopWindowTreeHostWin() {
+ DestroyCompositor();
// WARNING: |content_window_| has been destroyed by the time we get here.
desktop_native_widget_aura_->OnDesktopWindowTreeHostDestroyed(
root_window_);
@@ -769,10 +770,6 @@
void DesktopWindowTreeHostWin::HandleDestroying() {
drag_drop_client_->OnNativeWidgetDestroying(GetHWND());
native_widget_delegate_->OnNativeWidgetDestroying();
-
- // Destroy the compositor before destroying the HWND since shutdown
- // may try to swap to the window.
- DestroyCompositor();
}
void DesktopWindowTreeHostWin::HandleDestroyed() {
« no previous file with comments | « trunk/src/ui/gfx/win/window_impl.cc ('k') | trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698