diff options
Diffstat (limited to 'webkit/tools/test_shell/test_navigation_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/test_navigation_controller.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_navigation_controller.cc b/webkit/tools/test_shell/test_navigation_controller.cc index 8ee20b5..0c56115 100644 --- a/webkit/tools/test_shell/test_navigation_controller.cc +++ b/webkit/tools/test_shell/test_navigation_controller.cc @@ -34,13 +34,16 @@ void TestNavigationEntry::SetContentState(const std::string& state) { } WebHistoryItem* TestNavigationEntry::GetHistoryItem() const { + // TODO(port): temporary hack to get a basic test shell executable going. +#if !defined(OS_LINUX) if (!cached_history_item_) { - TestShellExtraRequestData* extra_data = + TestShellExtraRequestData* extra_data = new TestShellExtraRequestData(GetPageID()); cached_history_item_ = WebHistoryItem::Create(GetURL(), GetTitle(), GetContentState(), extra_data); } +#endif return cached_history_item_; } @@ -244,4 +247,3 @@ void TestNavigationController::UpdateMaxPageID() { if (entry) max_page_id_ = std::max(max_page_id_, entry->GetPageID()); } - |