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

Unified Diff: ui/aura/env.cc

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/aura/env.h ('k') | ui/aura/monitor_change_observer_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index 0e9222c73bceedbae2c5470b3fbce66675a09709..32ead2bce410fd08bc3d093b2f597240ba0a71e3 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -9,6 +9,10 @@
#include "ui/aura/window.h"
#include "ui/gfx/compositor/compositor.h"
+#if defined(USE_X11)
+#include "ui/aura/monitor_change_observer_x11.h"
+#endif
+
namespace aura {
// static
@@ -20,9 +24,11 @@ Env* Env::instance_ = NULL;
Env::Env()
: mouse_button_flags_(0),
stacking_client_(NULL),
- monitor_manager_(NULL)
+ monitor_manager_(new internal::SingleMonitorManager)
+#if defined(USE_X11)
+ , monitor_change_observer_(new MonitorChangeObserverX11())
+#endif
{
- SetMonitorManager(new internal::SingleMonitorManager());
#if !defined(OS_MACOSX)
dispatcher_.reset(CreateDispatcher());
#endif
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/monitor_change_observer_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698