Index: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc |
diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc |
index d4446ce700499d62e4fa36216d18351269e18c9b..7860068fa0cf0790b4ef8b414feb2a3d80656fcc 100644 |
--- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc |
+++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h" |
#include <stddef.h> |
+#include <utility> |
#include "base/prefs/pref_service.h" |
#include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
@@ -41,12 +42,12 @@ void PopupBlockedInfoBarDelegate::Create(content::WebContents* web_contents, |
for (size_t i = 0; i < infobar_service->infobar_count(); ++i) { |
infobars::InfoBar* existing_infobar = infobar_service->infobar_at(i); |
if (existing_infobar->delegate()->AsPopupBlockedInfoBarDelegate()) { |
- infobar_service->ReplaceInfoBar(existing_infobar, infobar.Pass()); |
+ infobar_service->ReplaceInfoBar(existing_infobar, std::move(infobar)); |
return; |
} |
} |
- infobar_service->AddInfoBar(infobar.Pass()); |
+ infobar_service->AddInfoBar(std::move(infobar)); |
} |
PopupBlockedInfoBarDelegate::~PopupBlockedInfoBarDelegate() { |