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

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: fix 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: android_webview/native/state_serializer.cc
diff --git a/android_webview/native/state_serializer.cc b/android_webview/native/state_serializer.cc
index 656b2d03dec29e1257ef0e50c24462d1a9888740..111ca71e573fabb97d854d95ef09431324a2db2e 100644
--- a/android_webview/native/state_serializer.cc
+++ b/android_webview/native/state_serializer.cc
@@ -164,6 +164,9 @@ bool WriteNavigationEntryToPickle(const content::NavigationEntry& entry,
if (!pickle->WriteInt64(entry.GetTimestamp().ToInternalValue()))
return false;
+ if (!pickle->WriteString16(entry.GetSearchTerms()))
+ return false;
joth 2012/12/13 02:11:48 fwiw the java-side of the webview API has no way t
boliu 2012/12/13 02:26:46 Right, agree with joth here that android webview w
+
// Please update AW_STATE_VERSION if serialization format is changed.
joth 2012/12/13 02:11:48 guess you didn't see this comment? Maybe put some
return true;
@@ -249,6 +252,12 @@ bool RestoreNavigationEntryFromPickle(PickleIterator* iterator,
entry->SetTimestamp(base::Time::FromInternalValue(timestamp));
}
+ {
+ string16 search_terms;
+ if (!iterator->ReadString16(&search_terms))
+ search_terms = string16();
joth 2012/12/13 02:11:48 this doesn't make sense? you're modifying a local,
+ }
+
return true;
}
« no previous file with comments | « no previous file | android_webview/native/state_serializer_unittests.cc » ('j') | content/public/browser/navigation_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698