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

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

Issue 2368183004: Move redirect_chain from NavigationEntry to FrameNavigationEntry. (Closed)
Patch Set: Created 4 years, 3 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
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 59df5cc2d016730fa5a64ff1c9875b12ad3cd696..66a284940e8d9299464484d1944456f26bf6cf0c 100644
--- a/components/sessions/content/content_serialized_navigation_builder.cc
+++ b/components/sessions/content/content_serialized_navigation_builder.cc
@@ -39,7 +39,7 @@ ContentSerializedNavigationBuilder::FromNavigationEntry(
if (entry.GetFavicon().valid)
navigation.favicon_url_ = entry.GetFavicon().url;
navigation.http_status_code_ = entry.GetHttpStatusCode();
- navigation.redirect_chain_ = entry.GetRedirectChain();
+ navigation.redirect_chain_ = entry.GetMainFrameRedirectChain();
navigation.password_state_ = GetPasswordStateFromNavigation(entry);
return navigation;
@@ -76,7 +76,7 @@ ContentSerializedNavigationBuilder::ToNavigationEntry(
entry->SetTimestamp(navigation->timestamp_);
entry->SetExtraData(kSearchTermsKey, navigation->search_terms_);
entry->SetHttpStatusCode(navigation->http_status_code_);
- entry->SetRedirectChain(navigation->redirect_chain_);
+ entry->SetMainFrameRedirectChain(navigation->redirect_chain_);
// These fields should have default values.
DCHECK_EQ(SerializedNavigationEntry::STATE_INVALID,

Powered by Google App Engine
This is Rietveld 408576698