diff options
Diffstat (limited to 'content/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | content/browser/tab_contents/tab_contents.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index e6fbba1..98f03f9 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -199,9 +199,6 @@ TabContents::TabContents(Profile* profile, view_->CreateView(base_tab_contents ? base_tab_contents->view()->GetContainerSize() : gfx::Size()); - registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, - NotificationService::AllSources()); - // 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. @@ -211,9 +208,6 @@ TabContents::TabContents(Profile* profile, TabContents::~TabContents() { is_being_destroyed_ = true; - // We don't want any notifications while we're running our destructor. - registrar_.RemoveAll(); - // Clear out any JavaScript state. if (delegate_) delegate_->GetJavaScriptDialogCreator()->ResetJavaScriptState(this); @@ -1810,20 +1804,6 @@ bool TabContents::CreateRenderViewForRenderManager( return true; } -void TabContents::Observe(int type, - const NotificationSource& source, - const NotificationDetails& details) { - switch (type) { - case content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED: - view_->RenderWidgetHostDestroyed(Source<RenderWidgetHost>(source).ptr()); - break; - default: - NOTREACHED(); - } -} - -// Overridden from JavaScriptDialogDelegate - void TabContents::OnDialogClosed(IPC::Message* reply_msg, bool success, const string16& user_input) { |