Commit 48ceeaf8 authored by jochen@chromium.org's avatar jochen@chromium.org

Stop generating dumps in the referrer check, but log in all developer builds

BUG=none
R=mef@chromium.org

Review URL: https://codereview.chromium.org/136613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244518 0039d316-1c4b-4281-b951-d872f2087c98
parent a461f916
......@@ -8,7 +8,6 @@
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/debug/dump_without_crashing.h"
#include "base/debug/stack_trace.h"
#include "base/lazy_instance.h"
#include "base/memory/singleton.h"
......@@ -703,8 +702,9 @@ void URLRequest::StartJob(URLRequestJob* job) {
if (referrer_policy_ ==
CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE &&
GURL(referrer_).SchemeIsSecure() && !url().SchemeIsSecure()) {
DLOG(FATAL) << "Trying to send secure referrer for insecure load";
base::debug::DumpWithoutCrashing();
#if !defined(OFFICIAL_BUILD)
LOG(FATAL) << "Trying to send secure referrer for insecure load";
#endif
referrer_.clear();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment