summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 22:37:07 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 22:37:07 +0000
commit6e83cb81e5e0c974a0782bc319e5a79ea0cca70b (patch)
treecfa8c9c14de3637fa40de8d322fabe75fec1ab50 /webkit/tools/test_shell/test_webview_delegate.cc
parent1c9c4e8e63c96e4255f81ae14e9e861a8ec56d7f (diff)
downloadchromium_src-6e83cb81e5e0c974a0782bc319e5a79ea0cca70b.zip
chromium_src-6e83cb81e5e0c974a0782bc319e5a79ea0cca70b.tar.gz
chromium_src-6e83cb81e5e0c974a0782bc319e5a79ea0cca70b.tar.bz2
Merge NavigationController and NavigationControllerBase for test_shell. I also removed all the inapplicable crap that was in there like transition and tab types.
BUG=1319488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 3e23252..92959f6 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -879,24 +879,6 @@ void TestWebViewDelegate::UpdateURL(WebFrame* frame) {
entry->SetURL(GURL(request.GetURL()));
}
- if (shell_->webView()->GetMainFrame() == frame) {
- // Top-level navigation.
-
- PageTransition::Type transition = extra_data ?
- extra_data->transition_type : PageTransition::LINK;
- if (!PageTransition::IsMainFrame(transition)) {
- transition = PageTransition::LINK;
- }
- entry->SetTransition(transition);
- } else {
- PageTransition::Type transition;
- if (page_id_ > last_page_id_updated_)
- transition = PageTransition::MANUAL_SUBFRAME;
- else
- transition = PageTransition::AUTO_SUBFRAME;
- entry->SetTransition(transition);
- }
-
shell_->navigation_controller()->DidNavigateToEntry(entry.release());
last_page_id_updated_ = std::max(last_page_id_updated_, page_id_);
@@ -910,8 +892,7 @@ void TestWebViewDelegate::UpdateSessionHistory(WebFrame* frame) {
return;
TestNavigationEntry* entry = static_cast<TestNavigationEntry*>(
- shell_->navigation_controller()->GetEntryWithPageID(
- TestNavigationEntry::GetTabContentsType(), page_id_));
+ shell_->navigation_controller()->GetEntryWithPageID(page_id_));
if (!entry)
return;