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

Unified Diff: ui/display/chromeos/x11/native_display_delegate_x11.cc

Issue 1878903002: Use injection and remove ozone dependency from ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unique_ptr Created 4 years, 8 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/display/chromeos/x11/display_configurator_x11.cc ('k') | ui/display/display.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/native_display_delegate_x11.cc
diff --git a/ui/display/chromeos/x11/native_display_delegate_x11.cc b/ui/display/chromeos/x11/native_display_delegate_x11.cc
index 2dc16a638c5017b7533bab5be694a4ee0415f615..f0d7f01f3de586559576e33f2a390b3e3ae6d908 100644
--- a/ui/display/chromeos/x11/native_display_delegate_x11.cc
+++ b/ui/display/chromeos/x11/native_display_delegate_x11.cc
@@ -109,7 +109,8 @@ NativeDisplayDelegateX11::NativeDisplayDelegateX11()
background_color_argb_(0) {}
NativeDisplayDelegateX11::~NativeDisplayDelegateX11() {
- if (ui::PlatformEventSource::GetInstance()) {
+ if (ui::PlatformEventSource::GetInstance() &&
+ platform_event_dispatcher_.get()) {
ui::PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(
platform_event_dispatcher_.get());
}
« no previous file with comments | « ui/display/chromeos/x11/display_configurator_x11.cc ('k') | ui/display/display.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698