Don't store WebContents in NativeWindow

This commit is contained in:
Cheng Zhao 2018-03-06 16:12:10 +09:00
parent 9000bd6679
commit 78468098c5
5 changed files with 4 additions and 15 deletions

View file

@ -265,10 +265,6 @@ class NativeWindow : public base::SupportsUserData {
observers_.RemoveObserver(obs);
}
brightray::InspectableWebContents* inspectable_web_contents() const {
return inspectable_web_contents_;
}
bool has_frame() const { return has_frame_; }
void set_has_frame(bool has_frame) { has_frame_ = has_frame; }
@ -329,9 +325,6 @@ class NativeWindow : public base::SupportsUserData {
// The browser view layer.
NativeBrowserView* browser_view_;
// The page this window is viewing.
brightray::InspectableWebContents* inspectable_web_contents_;
// Observers of this window.
base::ObserverList<NativeWindowObserver> observers_;