diff options
Diffstat (limited to 'content/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | content/browser/tab_contents/tab_contents.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index 25057f4..340c067 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -198,11 +198,6 @@ TabContents::TabContents(Profile* profile, // tab contents (normally a tab from the same window). view_->CreateView(base_tab_contents ? base_tab_contents->view()->GetContainerSize() : gfx::Size()); - - // Can only add observers after render_manager_.Init() is called, since that's - // what sets up the render_view_host which TabContentObserver's constructor - // uses to get the routing_id. - AddObservers(); } TabContents::~TabContents() { @@ -245,8 +240,6 @@ TabContents::~TabContents() { FOR_EACH_OBSERVER(TabContentsObserver, observers_, TabContentsDestroyed()); - net::NetworkChangeNotifier::RemoveOnlineStateObserver(this); - set_delegate(NULL); } @@ -261,10 +254,6 @@ void TabContents::set_delegate(TabContentsDelegate* delegate) { delegate_->Attach(this); } -void TabContents::AddObservers() { - net::NetworkChangeNotifier::AddOnlineStateObserver(this); -} - bool TabContents::OnMessageReceived(const IPC::Message& message) { if (web_ui() && web_ui()->OnMessageReceived(message)) return true; @@ -1831,8 +1820,3 @@ void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); rwh_view->SetSize(view()->GetContainerSize()); } - -void TabContents::OnOnlineStateChanged(bool online) { - render_view_host()->Send(new ViewMsg_NetworkStateChanged( - render_view_host()->routing_id(), online)); -} |