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

Unified Diff: ash/wm/workspace/workspace_cycler.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/multi_window_resize_controller.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_cycler.cc
diff --git a/ash/wm/workspace/workspace_cycler.cc b/ash/wm/workspace/workspace_cycler.cc
index 67319937b6c089718e10cf2bf1488e173ba60d14..a00926c08eb26e7c921a3e074ce02190306822a3 100644
--- a/ash/wm/workspace/workspace_cycler.cc
+++ b/ash/wm/workspace/workspace_cycler.cc
@@ -61,12 +61,12 @@ void WorkspaceCycler::SetState(State new_state) {
animator_.get());
animator_->AnimateStartingCycler();
} else if (new_state == STOPPING_CYCLING) {
- if (animator_.get())
+ if (animator_)
animator_->AnimateStoppingCycler();
} else if (new_state == NOT_CYCLING) {
scroll_x_ = 0.0f;
scroll_y_ = 0.0f;
- if (animator_.get()) {
+ if (animator_) {
animator_->AbortAnimations();
animator_.reset();
}
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698