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

Unified Diff: ios/web/web_state/ui/crw_web_controller+protected.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_web_controller+protected.h
diff --git a/ios/web/web_state/ui/crw_web_controller+protected.h b/ios/web/web_state/ui/crw_web_controller+protected.h
index 176235884b8aa249bdd3b582a840c0b89faab24b..79a91940818be95fe6903f4e75c9e2c895c138e1 100644
--- a/ios/web/web_state/ui/crw_web_controller+protected.h
+++ b/ios/web/web_state/ui/crw_web_controller+protected.h
@@ -106,8 +106,8 @@ static NSString* const kScriptImmediateName = @"crwebinvokeimmediate";
- (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo;
-// Designated initializer.
-- (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState;
+// Designated initializer. Initializes web controller with unowned |webState|.
kkhorimoto 2016/04/12 21:36:13 "Initializes a web controller owned by |webState|"
Eugene But (OOO till 7-30) 2016/04/13 02:51:26 Owner of WC should not be mentioned here (see my o
Eugene But (OOO till 7-30) 2016/04/13 13:57:57 Updated the comments according to Rohit's suggesti
+- (instancetype)initWithWebState:(web::WebStateImpl*)webState;
// Creates a web view if it's not yet created.
- (void)ensureWebViewCreated;

Powered by Google App Engine
This is Rietveld 408576698