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

Unified Diff: trunk/src/content/child/resource_dispatcher.cc

Issue 93803005: Revert 242767 "Add a renderer side version of the referrer check..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/child/resource_dispatcher.cc
===================================================================
--- trunk/src/content/child/resource_dispatcher.cc (revision 243304)
+++ trunk/src/content/child/resource_dispatcher.cc (working copy)
@@ -10,7 +10,6 @@
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
-#include "base/debug/dump_without_crashing.h"
#include "base/files/file_path.h"
#include "base/memory/shared_memory.h"
#include "base/message_loop/message_loop.h"
@@ -118,19 +117,6 @@
request_.first_party_for_cookies = request_info.first_party_for_cookies;
request_.referrer = request_info.referrer;
request_.referrer_policy = request_info.referrer_policy;
- if (request_info.referrer_policy == blink::WebReferrerPolicyDefault &&
- request_info.referrer.SchemeIsSecure() &&
- !request_info.url.SchemeIsSecure()) {
- // TODO(jochen): Remove before beta branches. http://crbug.com/331097
- char url_buf[128];
- base::strlcpy(url_buf, request_info.url.spec().c_str(), arraysize(url_buf));
- base::debug::Alias(url_buf);
- char ref_buf[128];
- base::strlcpy(
- ref_buf, request_info.referrer.spec().c_str(), arraysize(ref_buf));
- base::debug::Alias(ref_buf);
- base::debug::DumpWithoutCrashing();
- }
request_.headers = request_info.headers;
request_.load_flags = request_info.load_flags;
request_.origin_pid = request_info.requestor_pid;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698