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

Unified Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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: chrome/browser/ui/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 1678a9024cb56d7c14fc638c6a83a7306ac53c75..2f46cd3099746ea7f48495adb27d165079ce0119 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/views/tabs/tab.h"
#include <stddef.h>
-
#include <limits>
+#include <utility>
#include "base/command_line.h"
#include "base/debug/alias.h"
@@ -608,7 +608,7 @@ void Tab::StartPulse() {
}
void Tab::StopPulse() {
- StopAndDeleteAnimation(pulse_animation_.Pass());
+ StopAndDeleteAnimation(std::move(pulse_animation_));
}
void Tab::StartPinnedTabTitleAnimation() {
@@ -641,7 +641,7 @@ void Tab::StartPinnedTabTitleAnimation() {
}
void Tab::StopPinnedTabTitleAnimation() {
- StopAndDeleteAnimation(pinned_title_change_animation_.Pass());
+ StopAndDeleteAnimation(std::move(pinned_title_change_animation_));
}
int Tab::GetWidthOfLargestSelectableRegion() const {

Powered by Google App Engine
This is Rietveld 408576698