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

Unified Diff: ash/root_window_controller.cc

Issue 23496024: Introduce RootWindowProperty for RootWindow's properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 2f76528a150dfd47ea83b6c2b95025b770553c88..c4acf39edc944fcbd6d4496be5c4b4ba98efb483 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -13,6 +13,7 @@
#include "ash/desktop_background/user_wallpaper_delegate.h"
#include "ash/display/display_manager.h"
#include "ash/focus_cycler.h"
+#include "ash/root_window_property.h"
#include "ash/session_state_delegate.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_types.h"
@@ -54,6 +55,7 @@
#include "ui/aura/window_tracker.h"
#include "ui/base/hit_test.h"
#include "ui/base/models/menu_model.h"
+#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
#include "ui/keyboard/keyboard_controller.h"
#include "ui/keyboard/keyboard_util.h"
@@ -280,7 +282,8 @@ void RootWindowController::Shutdown() {
workspace_controller_.reset();
// Forget with the display ID so that display lookup
// ends up with invalid display.
- root_window_->ClearProperty(kDisplayIdKey);
+ internal::GetRootWindowProperty(root_window_.get())->display_id =
+ gfx::Display::kInvalidDisplayID;
// And this root window should no longer process events.
root_window_->PrepareForShutdown();

Powered by Google App Engine
This is Rietveld 408576698