Index: chrome/browser/android/media/media_throttle_infobar_delegate.cc |
diff --git a/chrome/browser/android/media/media_throttle_infobar_delegate.cc b/chrome/browser/android/media/media_throttle_infobar_delegate.cc |
index 05efb8d4d1fb54268917a4736e01a5557aee9a53..09a2db5f66db6103ab1427c91075961a0e2376d6 100644 |
--- a/chrome/browser/android/media/media_throttle_infobar_delegate.cc |
+++ b/chrome/browser/android/media/media_throttle_infobar_delegate.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/android/media/media_throttle_infobar_delegate.h" |
#include <stddef.h> |
+#include <utility> |
#include "base/metrics/histogram_macros.h" |
#include "chrome/browser/infobars/infobar_service.h" |
@@ -31,12 +32,12 @@ void MediaThrottleInfoBarDelegate::Create( |
MediaThrottleInfoBarDelegate* delegate = |
old_infobar->delegate()->AsMediaThrottleInfoBarDelegate(); |
if (delegate != nullptr) { |
- infobar_service->ReplaceInfoBar(old_infobar, new_infobar.Pass()); |
+ infobar_service->ReplaceInfoBar(old_infobar, std::move(new_infobar)); |
return; |
} |
} |
- infobar_service->AddInfoBar(new_infobar.Pass()); |
+ infobar_service->AddInfoBar(std::move(new_infobar)); |
} |
MediaThrottleInfoBarDelegate::MediaThrottleInfoBarDelegate( |