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

Unified Diff: android_webview/native/state_serializer.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: session_types comment 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: android_webview/native/state_serializer.cc
diff --git a/android_webview/native/state_serializer.cc b/android_webview/native/state_serializer.cc
index 656b2d03dec29e1257ef0e50c24462d1a9888740..bf0dbe167239e57af31f08c5bbab7dea3ed67f84 100644
--- a/android_webview/native/state_serializer.cc
+++ b/android_webview/native/state_serializer.cc
@@ -146,6 +146,9 @@ bool WriteNavigationEntryToPickle(const content::NavigationEntry& entry,
if (!pickle->WriteString16(entry.GetTitle()))
return false;
+ if (!pickle->WriteString16(entry.GetSearchTerms()))
+ return false;
+
if (!pickle->WriteString(entry.GetContentState()))
return false;
@@ -208,6 +211,13 @@ bool RestoreNavigationEntryFromPickle(PickleIterator* iterator,
}
{
+ string16 search_terms;
akalin 2012/12/06 23:14:46 will this ever try to load 'old' pickled entries?
Mathieu 2012/12/11 00:30:17 Done. I've put it at the end, but it won't fail if
+ if (!iterator->ReadString16(&search_terms))
+ return false;
+ entry->SetSearchTerms(search_terms);
+ }
+
+ {
string content_state;
if (!iterator->ReadString(&content_state))
return false;
« no previous file with comments | « no previous file | android_webview/native/state_serializer_unittests.cc » ('j') | chrome/browser/instant/instant_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698