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

Unified Diff: components/sessions/content/content_serialized_navigation_builder.cc

Issue 2264633003: Workaround for reading bad PageState from session history. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/content/content_serialized_navigation_builder.cc
diff --git a/components/sessions/content/content_serialized_navigation_builder.cc b/components/sessions/content/content_serialized_navigation_builder.cc
index 072f72e22e95fcee0f7846d451791d35b3459bb4..41e9576ca54567a55a8239ab9725349195dc57e4 100644
--- a/components/sessions/content/content_serialized_navigation_builder.cc
+++ b/components/sessions/content/content_serialized_navigation_builder.cc
@@ -26,6 +26,7 @@ ContentSerializedNavigationBuilder::FromNavigationEntry(
navigation.referrer_policy_ = entry.GetReferrer().policy;
navigation.virtual_url_ = entry.GetVirtualURL();
navigation.title_ = entry.GetTitle();
+ DLOG(INFO) << "csnb from: PageState:" << entry.GetPageState().ToEncodedData();
navigation.encoded_page_state_ = entry.GetPageState().ToEncodedData();
navigation.transition_type_ = entry.GetTransitionType();
navigation.has_post_data_ = entry.GetHasPostData();
@@ -64,6 +65,7 @@ ContentSerializedNavigationBuilder::ToNavigationEntry(
std::string(), browser_context));
entry->SetTitle(navigation->title_);
+ DLOG(INFO) << "csnb to: PageState: " << navigation->encoded_page_state_;
entry->SetPageState(content::PageState::CreateFromEncodedData(
navigation->encoded_page_state_));
entry->SetPageID(page_id);
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698