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

Unified Diff: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.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/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() {

Powered by Google App Engine
This is Rietveld 408576698