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

Unified Diff: chrome/browser/android/media/media_throttle_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/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(
« no previous file with comments | « chrome/browser/android/history_report/usage_reports_buffer_service.cc ('k') | chrome/browser/android/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698