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

Unified Diff: webkit/glue/context_menu.cc

Issue 8774050: Pass along the referrer policy (renderer side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 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
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu.cc
diff --git a/webkit/glue/context_menu.cc b/webkit/glue/context_menu.cc
index 1d9c4529faf0c65942ca06ca05cd61aee25e54a8..d4bad35207e587ef999276c8a5d75d24ab6ff6eb 100644
--- a/webkit/glue/context_menu.cc
+++ b/webkit/glue/context_menu.cc
@@ -26,7 +26,8 @@ ContextMenuParams::ContextMenuParams()
media_flags(0),
spellcheck_enabled(false),
is_editable(false),
- edit_flags(0) {
+ edit_flags(0),
+ referrer_policy(WebKit::WebReferrerPolicyDefault) {
}
ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
@@ -54,7 +55,8 @@ ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
#endif // OS_MACOSX
edit_flags(data.editFlags),
security_info(data.securityInfo),
- frame_charset(data.frameEncoding.utf8()) {
+ frame_charset(data.frameEncoding.utf8()),
+ referrer_policy(data.referrerPolicy) {
for (size_t i = 0; i < data.dictionarySuggestions.size(); ++i)
dictionary_suggestions.push_back(data.dictionarySuggestions[i]);
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698