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/web_state/ui/crw_wk_web_view_web_controller.mm

Issue 1874903003: Reversed WebState <-> CRWWebController ownership. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged with origin/master 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/web_state/ui/crw_wk_web_view_web_controller.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5a11c53df831ab027c60a02910d112361a386ed5..8dbe992ac3b17682cc6dd01fc3f49bc1fba61686 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
@@ -186,11 +186,11 @@
#pragma mark CRWWebController public methods
-- (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState {
- DCHECK(webState);
- web::BrowserState* browserState = webState->GetBrowserState();
- self = [super initWithWebState:std::move(webState)];
+- (instancetype)initWithWebState:(web::WebStateImpl*)webState {
+ self = [super initWithWebState:webState];
if (self) {
+ DCHECK(webState);
+ web::BrowserState* browserState = webState->GetBrowserState();
_certVerificationController.reset([[CRWCertVerificationController alloc]
initWithBrowserState:browserState]);
_certVerificationErrors.reset(
« no previous file with comments | « ios/web/web_state/ui/crw_wk_web_view_web_controller.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698