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

Unified Diff: chrome/browser/ui/tabs/tab_utils.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/tabs/tab_utils.cc
diff --git a/chrome/browser/ui/tabs/tab_utils.cc b/chrome/browser/ui/tabs/tab_utils.cc
index b93a0d4993145b39adb45f8c44f70fca6ca9d0de..44c091eb53b9ed0ed4e46b718b940f254408eaf8 100644
--- a/chrome/browser/ui/tabs/tab_utils.cc
+++ b/chrome/browser/ui/tabs/tab_utils.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/tabs/tab_utils.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
@@ -96,7 +98,7 @@ TabRecordingIndicatorAnimation::Create() {
scoped_ptr<TabRecordingIndicatorAnimation> animation(
new TabRecordingIndicatorAnimation(parts, interval));
animation->set_continuous(false);
- return animation.Pass();
+ return animation;
}
} // namespace
@@ -228,7 +230,7 @@ scoped_ptr<gfx::Animation> CreateTabMediaIndicatorFadeAnimation(
scoped_ptr<gfx::MultiAnimation> animation(
new gfx::MultiAnimation(parts, interval));
animation->set_continuous(false);
- return animation.Pass();
+ return std::move(animation);
}
base::string16 AssembleTabTooltipText(const base::string16& title,
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698