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. |