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

Unified Diff: ios/web/web_state/ui/crw_wk_web_view_web_controller.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/web_state/ui/crw_wk_web_view_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
index 884a4a00b1c6e939e6bf0c2244500cf60d27dc9d..ece3a51c7f1c7ba0c2303f93748c42398bdcfc46 100644
--- a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
+++ b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
@@ -190,7 +190,7 @@ NSError* WKWebViewErrorWithSource(NSError* error, WKWebViewErrorSource source) {
// Key is leaf-cert/host pair. This storage is used to carry calculated
// cert status from |didReceiveAuthenticationChallenge:| to
// |didFailProvisionalNavigation:| delegate method.
- scoped_ptr<CertVerificationErrorsCacheType> _certVerificationErrors;
+ std::unique_ptr<CertVerificationErrorsCacheType> _certVerificationErrors;
// YES if the user has interacted with the content area since the last URL
// change.
@@ -352,7 +352,7 @@ NSError* WKWebViewErrorWithSource(NSError* error, WKWebViewErrorSource source) {
#pragma mark CRWWebController public methods
-- (instancetype)initWithWebState:(scoped_ptr<web::WebStateImpl>)webState {
+- (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState {
DCHECK(webState);
web::BrowserState* browserState = webState->GetBrowserState();
self = [super initWithWebState:std::move(webState)];

Powered by Google App Engine
This is Rietveld 408576698