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

Unified Diff: chrome/browser/ui/android/infobars/save_password_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/save_password_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/save_password_infobar.cc b/chrome/browser/ui/android/infobars/save_password_infobar.cc
index 0a0bb50108b1cbeae462c7b4a174c4b9df2d885d..cb6315da4b231ce674b0393cc6ae8967be6653cd 100644
--- a/chrome/browser/ui/android/infobars/save_password_infobar.cc
+++ b/chrome/browser/ui/android/infobars/save_password_infobar.cc
@@ -4,14 +4,15 @@
#include "chrome/browser/ui/android/infobars/save_password_infobar.h"
+#include <utility>
+
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "jni/SavePasswordInfoBar_jni.h"
SavePasswordInfoBar::SavePasswordInfoBar(
scoped_ptr<SavePasswordInfoBarDelegate> delegate)
- : ConfirmInfoBar(delegate.Pass()) {
-}
+ : ConfirmInfoBar(std::move(delegate)) {}
SavePasswordInfoBar::~SavePasswordInfoBar() {
}
@@ -50,5 +51,5 @@ bool SavePasswordInfoBar::Register(JNIEnv* env) {
scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
scoped_ptr<SavePasswordInfoBarDelegate> delegate) {
- return make_scoped_ptr(new SavePasswordInfoBar(delegate.Pass()));
+ return make_scoped_ptr(new SavePasswordInfoBar(std::move(delegate)));
}
« no previous file with comments | « chrome/browser/ui/android/infobars/infobar_android.cc ('k') | chrome/browser/ui/android/infobars/translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698