summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_loader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/instant/instant_loader.cc')
-rw-r--r--chrome/browser/instant/instant_loader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 5d6d9c7..4898310 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -172,7 +172,7 @@ bool InstantLoader::WebContentsDelegateImpl::OnGoToEntryOffset(int offset) {
bool InstantLoader::WebContentsDelegateImpl::ShouldAddNavigationToHistory(
const history::HistoryAddPageArgs& add_page_args,
content::NavigationType navigation_type) {
- loader_->last_navigation_ = add_page_args.Clone();
+ loader_->last_navigation_ = add_page_args;
return false;
}
@@ -312,7 +312,7 @@ void InstantLoader::Init() {
void InstantLoader::Update(const string16& user_text, bool verbatim) {
// TODO: Support real cursor position.
- last_navigation_ = NULL;
+ last_navigation_ = history::HistoryAddPageArgs();
content::RenderViewHost* rvh =
preview_contents_->web_contents()->GetRenderViewHost();
rvh->Send(new ChromeViewMsg_SearchBoxChange(rvh->GetRoutingID(), user_text,