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

Unified Diff: ios/web/public/web_controller_factory.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
« no previous file with comments | « ios/web/public/web_controller_factory.h ('k') | ios/web/public/web_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_controller_factory.mm
diff --git a/ios/web/public/web_controller_factory.mm b/ios/web/public/web_controller_factory.mm
index e23e880c8f6750939a22fdb37fbe50c76dd96e0d..2947af886ed372578ba6fbcc1c32b7d05fbab035 100644
--- a/ios/web/public/web_controller_factory.mm
+++ b/ios/web/public/web_controller_factory.mm
@@ -12,14 +12,15 @@
namespace web {
-CRWWebController* CreateWebController(scoped_ptr<WebStateImpl> web_state) {
+CRWWebController* CreateWebController(std::unique_ptr<WebStateImpl> web_state) {
return
[[CRWWKWebViewWebController alloc] initWithWebState:std::move(web_state)];
}
CRWWebController* CreateWebController(BrowserState* browser_state) {
DCHECK(browser_state);
- scoped_ptr<web::WebStateImpl> web_state(new web::WebStateImpl(browser_state));
+ std::unique_ptr<web::WebStateImpl> web_state(
+ new web::WebStateImpl(browser_state));
web_state->GetNavigationManagerImpl().InitializeSession(nil, nil, NO, -1);
return CreateWebController(std::move(web_state));
}
« no previous file with comments | « ios/web/public/web_controller_factory.h ('k') | ios/web/public/web_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698