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

Unified Diff: content/public/renderer/history_item_serialization.cc

Issue 134813003: Add the referrer policy to the page state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « content/public/common/page_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/history_item_serialization.cc
diff --git a/content/public/renderer/history_item_serialization.cc b/content/public/renderer/history_item_serialization.cc
index 96309c954d28115538fe6c74a816392acb493493..1c4c1dd04fcf1064ed81346b3d9a9b2cef42859a 100644
--- a/content/public/renderer/history_item_serialization.cc
+++ b/content/public/renderer/history_item_serialization.cc
@@ -84,6 +84,7 @@ bool RecursivelyGenerateFrameState(const WebHistoryItem& item,
state->url_string = item.urlString();
state->original_url_string = item.originalURLString();
state->referrer = item.referrer();
+ state->referrer_policy = item.referrerPolicy();
state->target = item.target();
if (!item.stateObject().isNull())
state->state_object = item.stateObject().toString();
@@ -122,7 +123,7 @@ bool RecursivelyGenerateHistoryItem(const ExplodedFrameState& state,
WebHistoryItem* item) {
item->setURLString(state.url_string);
item->setOriginalURLString(state.original_url_string);
- item->setReferrer(state.referrer);
+ item->setReferrer(state.referrer, state.referrer_policy);
item->setTarget(state.target);
if (!state.state_object.is_null()) {
item->setStateObject(
« no previous file with comments | « content/public/common/page_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698