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/multi_window_resize_controller.cc

Issue 14297013: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/frame_maximize_button.cc ('k') | ash/wm/workspace/workspace_cycler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/multi_window_resize_controller.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller.cc b/ash/wm/workspace/multi_window_resize_controller.cc
index 1dea17d78c37fdfe484e281535f5a7fc9ff66f26..798b5c46d8e9562dc2a1d4fcbaf8ebe4e58c8293 100644
--- a/ash/wm/workspace/multi_window_resize_controller.cc
+++ b/ash/wm/workspace/multi_window_resize_controller.cc
@@ -162,7 +162,7 @@ void MultiWindowResizeController::Show(Window* window,
// only care about mouse movements from MouseWatcher. This is necessary as
// WorkspaceEventHandler only sees mouse movements over the windows, not all
// windows or over the desktop.
- if (resize_widget_.get())
+ if (resize_widget_)
return;
ResizeWindows windows(DetermineWindows(window, component, point_in_window));
@@ -190,7 +190,7 @@ void MultiWindowResizeController::Show(Window* window,
void MultiWindowResizeController::Hide() {
hide_timer_.Stop();
- if (window_resizer_.get())
+ if (window_resizer_)
return; // Ignore hides while actively resizing.
if (windows_.window1) {
@@ -204,7 +204,7 @@ void MultiWindowResizeController::Hide() {
show_timer_.Stop();
- if (!resize_widget_.get())
+ if (!resize_widget_)
return;
for (size_t i = 0; i < windows_.other_windows.size(); ++i)
@@ -473,7 +473,7 @@ void MultiWindowResizeController::CompleteResize(int event_flags) {
}
void MultiWindowResizeController::CancelResize() {
- if (!window_resizer_.get())
+ if (!window_resizer_)
return; // Happens if window was destroyed and we nuked the WindowResizer.
window_resizer_->RevertDrag();
window_resizer_.reset();
@@ -504,7 +504,7 @@ gfx::Rect MultiWindowResizeController::CalculateResizeWidgetBounds(
bool MultiWindowResizeController::IsOverWindows(
const gfx::Point& location_in_screen) const {
- if (window_resizer_.get())
+ if (window_resizer_)
return true; // Ignore hides while actively resizing.
if (resize_widget_->GetWindowBoundsInScreen().Contains(location_in_screen))
« no previous file with comments | « ash/wm/workspace/frame_maximize_button.cc ('k') | ash/wm/workspace/workspace_cycler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698