Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: content/browser/web_contents/navigation_entry_impl.cc

Issue 11415292: [Search] No longer reverting omnibox text on instant search (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More tests Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/navigation_entry_impl.cc
diff --git a/content/browser/web_contents/navigation_entry_impl.cc b/content/browser/web_contents/navigation_entry_impl.cc
index 53d70aaf7cbbfd868cdd20bbd1fa0b21ff0eba63..985e3e05671a869842ef4bd6dcb6beb6e20e56cf 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -63,6 +63,7 @@ NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
referrer_(referrer),
update_virtual_url_with_url_(false),
title_(title),
+ search_terms_(string16()),
akalin 2012/12/05 19:40:27 unneeded
Mathieu 2012/12/05 20:42:16 Done.
page_id_(page_id),
transition_type_(transition_type),
has_post_data_(false),
@@ -128,6 +129,14 @@ const string16& NavigationEntryImpl::GetTitle() const {
return title_;
}
+void NavigationEntryImpl::SetSearchTerms(const string16& search_terms) {
+ search_terms_ = search_terms;
+}
+
+const string16& NavigationEntryImpl::GetSearchTerms() const {
+ return search_terms_;
+}
+
void NavigationEntryImpl::SetContentState(const std::string& state) {
content_state_ = state;
}

Powered by Google App Engine
This is Rietveld 408576698