| Index: ios/web/web_state/web_state_impl.h
|
| diff --git a/ios/web/web_state/web_state_impl.h b/ios/web/web_state/web_state_impl.h
|
| index 6cf970df09fc8ab7affd769d2975451b345a0942..261d87f48a705be879eb4a7e7a5737f2389d6634 100644
|
| --- a/ios/web/web_state/web_state_impl.h
|
| +++ b/ios/web/web_state/web_state_impl.h
|
| @@ -62,9 +62,8 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
|
| WebStateImpl(BrowserState* browser_state);
|
| ~WebStateImpl() override;
|
|
|
| - // Sets the CRWWebController that backs this object. Typically
|
| - // |web_controller| will also take ownership of this object. This will also
|
| - // create the WebContentsIOS facade.
|
| + // Gets/Sets the CRWWebController that backs this object.
|
| + CRWWebController* GetWebController();
|
| void SetWebController(CRWWebController* web_controller);
|
|
|
| // Gets or sets the delegate used to communicate with the web contents facade.
|
| @@ -288,8 +287,8 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
|
| // The delegate used to pass state to the web contents facade.
|
| WebStateFacadeDelegate* facade_delegate_;
|
|
|
| - // The CRWWebController that backs and owns this object.
|
| - CRWWebController* web_controller_;
|
| + // The CRWWebController that backs this object.
|
| + base::scoped_nsobject<CRWWebController> web_controller_;
|
|
|
| NavigationManagerImpl navigation_manager_;
|
|
|
|
|