summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index e35f941..5077064 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -193,8 +193,7 @@ WebContents::WebContents(Profile* profile,
SiteInstance* site_instance,
int routing_id,
base::WaitableEvent* modal_dialog_event)
- : TabContents(TAB_CONTENTS_WEB),
- view_(WebContentsView::Create(this)),
+ : view_(WebContentsView::Create(this)),
ALLOW_THIS_IN_INITIALIZER_LIST(render_manager_(this, this)),
printing_(*this),
notify_disconnection_(false),
@@ -797,7 +796,7 @@ void WebContents::DidNavigate(RenderViewHost* rvh,
render_manager_.DidNavigateMainFrame(rvh);
// We can't do anything about navigations when we're inactive.
- if (!controller() || !is_active())
+ if (!controller())
return;
// Update the site of the SiteInstance if it doesn't have one yet.
@@ -983,7 +982,7 @@ void WebContents::DidRedirectProvisionalLoad(int32 page_id,
entry = controller()->pending_entry();
else
entry = controller()->GetEntryWithPageID(GetSiteInstance(), page_id);
- if (!entry || entry->tab_type() != type() || entry->url() != source_url)
+ if (!entry || entry->url() != source_url)
return;
entry->set_url(target_url);
}