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

Unified Diff: ios/web/interstitials/native_web_interstitial_impl.h

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/native_web_interstitial_impl.h
diff --git a/ios/web/interstitials/native_web_interstitial_impl.h b/ios/web/interstitials/native_web_interstitial_impl.h
index 1280ef497933c87207fd98ea359c961fd2dc55a4..4a9d4f4a1efaf6138375ff857ca038cbf0f7e214 100644
--- a/ios/web/interstitials/native_web_interstitial_impl.h
+++ b/ios/web/interstitials/native_web_interstitial_impl.h
@@ -7,6 +7,8 @@
#include "ios/web/interstitials/web_interstitial_impl.h"
+#include <memory>
+
#include "base/ios/weak_nsobject.h"
#include "base/mac/scoped_nsobject.h"
@@ -18,10 +20,11 @@ class NativeWebInterstitialDelegate;
// interstitials created via native views.
class NativeWebInterstitialImpl : public WebInterstitialImpl {
public:
- NativeWebInterstitialImpl(WebStateImpl* web_state,
- bool new_navigation,
- const GURL& url,
- scoped_ptr<NativeWebInterstitialDelegate> delegate);
+ NativeWebInterstitialImpl(
+ WebStateImpl* web_state,
+ bool new_navigation,
+ const GURL& url,
+ std::unique_ptr<NativeWebInterstitialDelegate> delegate);
~NativeWebInterstitialImpl() override;
// WebInterstitialImpl implementation:
@@ -36,7 +39,7 @@ class NativeWebInterstitialImpl : public WebInterstitialImpl {
private:
// The native interstitial delegate.
- scoped_ptr<NativeWebInterstitialDelegate> delegate_;
+ std::unique_ptr<NativeWebInterstitialDelegate> delegate_;
// The transient content view containing interstitial content.
base::scoped_nsobject<CRWContentView> content_view_;
};
« no previous file with comments | « ios/web/interstitials/html_web_interstitial_impl.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