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

Unified Diff: chrome/browser/ui/android/infobars/data_reduction_proxy_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/data_reduction_proxy_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
index f44def98c6b7998f0085f18d7be7a66e71a05913..0153ce7871308f18335a4c5fe7420922d222e3e5 100644
--- a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
+++ b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h"
+#include <utility>
+
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/logging.h"
@@ -31,7 +33,8 @@ bool DataReductionProxyInfoBar::Register(JNIEnv* env) {
DataReductionProxyInfoBar::DataReductionProxyInfoBar(
scoped_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate)
- : ConfirmInfoBar(delegate.Pass()), java_data_reduction_proxy_delegate_() {}
+ : ConfirmInfoBar(std::move(delegate)),
+ java_data_reduction_proxy_delegate_() {}
DataReductionProxyInfoBar::~DataReductionProxyInfoBar() {
}
@@ -58,7 +61,7 @@ DataReductionProxyInfoBarDelegateAndroid::CreateInfoBar(
infobars::InfoBarManager* infobar_manager,
scoped_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate) {
return scoped_ptr<infobars::InfoBar>(
- new DataReductionProxyInfoBar(delegate.Pass()));
+ new DataReductionProxyInfoBar(std::move(delegate)));
}
// JNI for DataReductionProxyInfoBarDelegate.

Powered by Google App Engine
This is Rietveld 408576698