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

Unified Diff: ios/chrome/browser/infobars/infobar.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 months 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: ios/chrome/browser/infobars/infobar.mm
diff --git a/ios/chrome/browser/infobars/infobar.mm b/ios/chrome/browser/infobars/infobar.mm
index b7f7453caa5ff2f939f0c0605f702e436b5f0be8..00ae46b66429829e43f7ac4e7f724fb30f038b27 100644
--- a/ios/chrome/browser/infobars/infobar.mm
+++ b/ios/chrome/browser/infobars/infobar.mm
@@ -4,6 +4,8 @@
#include "ios/chrome/browser/infobars/infobar.h"
+#include <utility>
+
#include "base/logging.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/translate/core/browser/translate_infobar_delegate.h"
@@ -15,8 +17,7 @@ using infobars::InfoBar;
using infobars::InfoBarDelegate;
InfoBarIOS::InfoBarIOS(scoped_ptr<InfoBarDelegate> delegate)
- : InfoBar(delegate.Pass()) {
-}
+ : InfoBar(std::move(delegate)) {}
InfoBarIOS::~InfoBarIOS() {
DCHECK(controller_);
« no previous file with comments | « ios/chrome/browser/history/history_service_factory.cc ('k') | ios/chrome/browser/infobars/infobar_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698