view_ needs to be destroyed after web_contents_

This commit is contained in:
Cheng Zhao 2015-06-09 11:09:16 +08:00
parent e0992884e6
commit 5e943e1456

View file

@ -160,9 +160,9 @@ class InspectableWebContentsImpl :
PendingRequestsMap pending_requests_;
InspectableWebContentsDelegate* delegate_; // weak references.
scoped_ptr<InspectableWebContentsView> view_;
scoped_ptr<content::WebContents> web_contents_;
scoped_ptr<content::WebContents> devtools_web_contents_;
scoped_ptr<InspectableWebContentsView> view_;
base::WeakPtrFactory<InspectableWebContentsImpl> weak_factory_;