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

Unified Diff: ios/web/interstitials/html_web_interstitial_impl.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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/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 0a22dba92c978f17f8cb40542058d4f46628eab6..1443b733b33b1023a426c97c22d83cefda584f23 100644
--- a/ios/web/interstitials/html_web_interstitial_impl.mm
+++ b/ios/web/interstitials/html_web_interstitial_impl.mm
@@ -77,7 +77,7 @@ WebInterstitial* WebInterstitial::CreateHtmlInterstitial(
WebState* web_state,
bool new_navigation,
const GURL& url,
- scoped_ptr<HtmlWebInterstitialDelegate> delegate) {
+ std::unique_ptr<HtmlWebInterstitialDelegate> delegate) {
WebStateImpl* web_state_impl = static_cast<WebStateImpl*>(web_state);
return new HtmlWebInterstitialImpl(web_state_impl, new_navigation, url,
std::move(delegate));
@@ -87,7 +87,7 @@ HtmlWebInterstitialImpl::HtmlWebInterstitialImpl(
WebStateImpl* web_state,
bool new_navigation,
const GURL& url,
- scoped_ptr<HtmlWebInterstitialDelegate> delegate)
+ std::unique_ptr<HtmlWebInterstitialDelegate> delegate)
: WebInterstitialImpl(web_state, new_navigation, url),
delegate_(std::move(delegate)) {
DCHECK(delegate_);
« no previous file with comments | « ios/web/interstitials/html_web_interstitial_impl.h ('k') | ios/web/interstitials/native_web_interstitial_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698