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

Unified Diff: ash/wm/workspace/workspace_window_resizer.cc

Issue 10836157: Fix DCHECK error when using multi window resizer on the 2nd display that is place on the left side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_window_resizer.cc
diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc
index 57c70f68d569a3b29c20b19a00c153b20f1c082f..e8f12a8de5f63f9594c5b903de9019cc8d017dbd 100644
--- a/ash/wm/workspace/workspace_window_resizer.cc
+++ b/ash/wm/workspace/workspace_window_resizer.cc
@@ -283,8 +283,7 @@ gfx::Rect WorkspaceWindowResizer::GetFinalBounds(
void WorkspaceWindowResizer::LayoutAttachedWindows(
const gfx::Rect& bounds,
int grid_size) {
- gfx::Rect work_area(
- gfx::Screen::GetDisplayNearestWindow(window()).work_area());
+ gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window()));
std::vector<int> sizes;
CalculateAttachedSizes(
PrimaryAxisSize(details_.initial_bounds.size()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698