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

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

Issue 10910164: Removes the grid from ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ShelfBrowserTest Created 8 years, 3 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 | « ash/wm/workspace/base_workspace_manager.h ('k') | ash/wm/workspace/multi_window_resize_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/frame_maximize_button.cc
diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc
index 349dabec2673f10b11d03e6bef35a96df0fde224..c874f6ea006ed59e31120ebfe7a1efab524485d5 100644
--- a/ash/wm/workspace/frame_maximize_button.cc
+++ b/ash/wm/workspace/frame_maximize_button.cc
@@ -417,10 +417,9 @@ void FrameMaximizeButton::UpdateSnap(const gfx::Point& location,
if (snap_type_ == SNAP_LEFT || snap_type_ == SNAP_RIGHT) {
SnapSizer::Edge snap_edge = snap_type_ == SNAP_LEFT ?
SnapSizer::LEFT_EDGE : SnapSizer::RIGHT_EDGE;
- int grid_size = Shell::GetInstance()->GetGridSize();
snap_sizer_.reset(new SnapSizer(frame_->GetWidget()->GetNativeWindow(),
LocationForSnapSizer(location),
- snap_edge, grid_size));
+ snap_edge));
if (select_default)
snap_sizer_->SelectDefaultSizeAndDisableResize();
}
« no previous file with comments | « ash/wm/workspace/base_workspace_manager.h ('k') | ash/wm/workspace/multi_window_resize_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698