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

Unified Diff: trunk/src/chrome/browser/ui/views/chrome_views_delegate.cc

Issue 19668011: Revert 213347 "Use GetDisplayNearestWindow instead of GetDislpa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 | « trunk/src/ash/wm/workspace/frame_maximize_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/views/chrome_views_delegate.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/chrome_views_delegate.cc (revision 213355)
+++ trunk/src/chrome/browser/ui/views/chrome_views_delegate.cc (working copy)
@@ -84,7 +84,7 @@
window_preferences->SetBoolean("maximized",
show_state == ui::SHOW_STATE_MAXIMIZED);
gfx::Rect work_area(gfx::Screen::GetScreenFor(window->GetNativeView())->
- GetDisplayNearestWindow(window->GetNativeView()).work_area());
+ GetDisplayMatching(bounds).work_area());
window_preferences->SetInteger("work_area_left", work_area.x());
window_preferences->SetInteger("work_area_top", work_area.y());
window_preferences->SetInteger("work_area_right", work_area.right());
« no previous file with comments | « trunk/src/ash/wm/workspace/frame_maximize_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698