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

Unified Diff: chrome/browser/ui/android/infobars/generated_password_saved_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/generated_password_saved_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/generated_password_saved_infobar.cc b/chrome/browser/ui/android/infobars/generated_password_saved_infobar.cc
index b6c712c59f9c7923d107b8311addba1be805ea59..e1b1cca4e712ebba71f3edcea88e9ed09067cb45 100644
--- a/chrome/browser/ui/android/infobars/generated_password_saved_infobar.cc
+++ b/chrome/browser/ui/android/infobars/generated_password_saved_infobar.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/android/infobars/generated_password_saved_infobar.h"
+#include <utility>
+
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "chrome/browser/infobars/infobar_service.h"
@@ -21,8 +23,7 @@ void GeneratedPasswordSavedInfoBarDelegateAndroid::Create(
GeneratedPasswordSavedInfoBar::GeneratedPasswordSavedInfoBar(
scoped_ptr<GeneratedPasswordSavedInfoBarDelegateAndroid> delegate)
- : InfoBarAndroid(delegate.Pass()) {
-}
+ : InfoBarAndroid(std::move(delegate)) {}
GeneratedPasswordSavedInfoBar::~GeneratedPasswordSavedInfoBar() {
}

Powered by Google App Engine
This is Rietveld 408576698