Index: ash/display/screen_ash.cc |
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc |
index 9d42e49e26724dc8ee03b2daa08fc3eb282b9539..4c5d2a9c1b8f0f00620c93cb53f97a88801859f4 100644 |
--- a/ash/display/screen_ash.cc |
+++ b/ash/display/screen_ash.cc |
@@ -233,12 +233,11 @@ gfx::Display ScreenAsh::GetDisplayNearestWindow(gfx::NativeView window) const { |
if (!root_window) |
return GetPrimaryDisplay(); |
const RootWindowSettings* rws = GetRootWindowSettings(root_window); |
- if (rws->shutdown) |
- return GetPrimaryDisplay(); |
- |
int64 id = rws->display_id; |
// if id is |kInvaildDisplayID|, it's being deleted. |
DCHECK(id != gfx::Display::kInvalidDisplayID); |
+ if (id != gfx::Display::kInvalidDisplayID) |
sadrul
2014/05/21 19:01:49
Did you mean id == invalid here?
oshima
2014/05/22 17:03:13
oops, fixed. thanks.
|
+ return GetPrimaryDisplay(); |
DisplayManager* display_manager = GetDisplayManager(); |
// RootWindow needs Display to determine its device scale factor |