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

Unified Diff: ios/web/interstitials/html_web_interstitial_impl.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
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | ios/web/interstitials/native_web_interstitial_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/interstitials/html_web_interstitial_impl.mm
diff --git a/ios/web/interstitials/html_web_interstitial_impl.mm b/ios/web/interstitials/html_web_interstitial_impl.mm
index 98439fe5b4c180da2508e5f6adc84fd640f679c2..f7f3f4f4d6617bdf0397d603ca5d8c8ba4a664b5 100644
--- a/ios/web/interstitials/html_web_interstitial_impl.mm
+++ b/ios/web/interstitials/html_web_interstitial_impl.mm
@@ -4,6 +4,8 @@
#import "ios/web/interstitials/html_web_interstitial_impl.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/web/interstitials/web_interstitial_facade_delegate.h"
@@ -67,7 +69,7 @@ WebInterstitial* WebInterstitial::CreateHtmlInterstitial(
scoped_ptr<HtmlWebInterstitialDelegate> delegate) {
WebStateImpl* web_state_impl = static_cast<WebStateImpl*>(web_state);
return new HtmlWebInterstitialImpl(web_state_impl, new_navigation, url,
- delegate.Pass());
+ std::move(delegate));
}
HtmlWebInterstitialImpl::HtmlWebInterstitialImpl(
@@ -76,7 +78,7 @@ HtmlWebInterstitialImpl::HtmlWebInterstitialImpl(
const GURL& url,
scoped_ptr<HtmlWebInterstitialDelegate> delegate)
: WebInterstitialImpl(web_state, new_navigation, url),
- delegate_(delegate.Pass()) {
+ delegate_(std::move(delegate)) {
DCHECK(delegate_);
}
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | ios/web/interstitials/native_web_interstitial_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698