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

Unified Diff: content/browser/web_contents/aura/overscroll_window_animation.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: content/browser/web_contents/aura/overscroll_window_animation.cc
diff --git a/content/browser/web_contents/aura/overscroll_window_animation.cc b/content/browser/web_contents/aura/overscroll_window_animation.cc
index c89faa08b082c9a5db39f5a526bc66b838f9f2f0..8ed3bf04d48809b9a0e58c310c003f5c1099839c 100644
--- a/content/browser/web_contents/aura/overscroll_window_animation.cc
+++ b/content/browser/web_contents/aura/overscroll_window_animation.cc
@@ -5,6 +5,7 @@
#include "content/browser/web_contents/aura/overscroll_window_animation.h"
#include <algorithm>
+#include <utility>
#include "base/i18n/rtl.h"
#include "content/browser/web_contents/aura/shadow_layer_delegate.h"
@@ -78,7 +79,7 @@ void OverscrollWindowAnimation::OnImplicitAnimationsCompleted() {
delegate_->OnOverscrollCancelled();
overscroll_cancelled_ = false;
} else {
- delegate_->OnOverscrollCompleted(slide_window_.Pass());
+ delegate_->OnOverscrollCompleted(std::move(slide_window_));
}
direction_ = SLIDE_NONE;
}

Powered by Google App Engine
This is Rietveld 408576698