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

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 a0ee53b6449c2f899e2816141eeebf7154ca19dd..00c111ab22643a392d60e87d2ef316fc48db68df 100644
--- a/ios/web/web_state/ui/crw_web_controller+protected.h
+++ b/ios/web/web_state/ui/crw_web_controller+protected.h
@@ -81,8 +81,8 @@ static NSString* const kScriptImmediateName = @"crwebinvokeimmediate";
// Downloader for PassKit files. Lazy initialized.
@property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader;
-// Designated initializer.
-- (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState;
+// Designated initializer. Initializes web controller with unowned |webState|.
+- (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