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

Unified Diff: chrome/browser/ui/android/infobars/translate_infobar.cc

Issue 1551033002: Convert Pass()→std::move() in //chrome (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable RVO by making types match 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/android/infobars/translate_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/translate_infobar.cc b/chrome/browser/ui/android/infobars/translate_infobar.cc
index 85e90208e2b917b556a4a319bd1a5091fbddb96e..effcb53a0ae3c0041ca1d685f099c1f759bcbb37 100644
--- a/chrome/browser/ui/android/infobars/translate_infobar.cc
+++ b/chrome/browser/ui/android/infobars/translate_infobar.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/android/infobars/translate_infobar.h"
#include <stddef.h>
+#include <utility>
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
@@ -19,7 +20,7 @@
scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
scoped_ptr<translate::TranslateInfoBarDelegate> delegate) const {
- return make_scoped_ptr(new TranslateInfoBar(delegate.Pass()));
+ return make_scoped_ptr(new TranslateInfoBar(std::move(delegate)));
}
@@ -27,8 +28,7 @@ scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
TranslateInfoBar::TranslateInfoBar(
scoped_ptr<translate::TranslateInfoBarDelegate> delegate)
- : InfoBarAndroid(delegate.Pass()) {
-}
+ : InfoBarAndroid(std::move(delegate)) {}
TranslateInfoBar::~TranslateInfoBar() {
}

Powered by Google App Engine
This is Rietveld 408576698