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

Unified Diff: ios/web/web_state/ui/crw_wk_web_view_web_controller.h

Issue 1874903003: Reversed WebState <-> CRWWebController ownership. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review 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.h
diff --git a/ios/web/web_state/ui/crw_wk_web_view_web_controller.h b/ios/web/web_state/ui/crw_wk_web_view_web_controller.h
index 44eef2d244a67de12e78ceaae449282716affcc0..cde01616b82be8046d200f074935e66e1b9b9ed7 100644
--- a/ios/web/web_state/ui/crw_wk_web_view_web_controller.h
+++ b/ios/web/web_state/ui/crw_wk_web_view_web_controller.h
@@ -12,8 +12,8 @@
// A concrete implementation of CRWWebController based on WKWebView.
@interface CRWWKWebViewWebController : CRWWebController
-// Designated initializer.
-- (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState;
+// Designated initializer. Initializes web controller with unowned |webState|.
+- (instancetype)initWithWebState:(web::WebStateImpl*)webState;
@end

Powered by Google App Engine
This is Rietveld 408576698