diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 19:08:56 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 19:08:56 +0000 |
commit | 606843faf131685e7802df12f2ee97efc7cf2f3b (patch) | |
tree | f4d494147c9190ba22c370148ab5aab2020f6d1a /webkit/tools/test_shell/test_webview_delegate.cc | |
parent | 63e78057b6ae2685ed3525d832fed48b7c85ee1e (diff) | |
download | chromium_src-606843faf131685e7802df12f2ee97efc7cf2f3b.zip chromium_src-606843faf131685e7802df12f2ee97efc7cf2f3b.tar.gz chromium_src-606843faf131685e7802df12f2ee97efc7cf2f3b.tar.bz2 |
Remove the URL and title from the state getting functions and IPC messages.
If the title or URL changes, we'll be updated in other ways, so this extra processing is wasted.
Review URL: http://codereview.chromium.org/12859
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6225 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.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 3adcf08..17d3786 100644 --- a/webkit/tools/test_shell/test_webview_delegate.cc +++ b/webkit/tools/test_shell/test_webview_delegate.cc @@ -763,15 +763,9 @@ void TestWebViewDelegate::UpdateSessionHistory(WebFrame* frame) { if (!entry) return; - GURL url; - std::wstring title; std::string state; - if (!shell_->webView()->GetMainFrame()-> - GetPreviousState(&url, &title, &state)) + if (!shell_->webView()->GetMainFrame()->GetPreviousHistoryState(&state)) return; - - entry->SetURL(url); - entry->SetTitle(title); entry->SetContentState(state); } |