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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2399643002: Ship Referrer-Policy header (Closed)
Patch Set: remove some more missed ShouldEnableReferrerPolicyHeader() spots Created 4 years, 2 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: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 6dc607167d33f28a94ee4f7f5078d86f0bf1a722..20a20f5b9b3ea57556aeebc2680bd534a3069ce2 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -85,7 +85,6 @@
#include "core/svg/graphics/SVGImage.h"
#include "core/xml/parser/XMLDocumentParser.h"
#include "platform/PluginScriptForbiddenScope.h"
-#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
#include "platform/UserGestureIndicator.h"
@@ -579,8 +578,7 @@ void FrameLoader::didBeginDocument() {
m_documentLoader->response().httpHeaderField(HTTPNames::Origin_Trial));
}
- if (m_documentLoader &&
- RuntimeEnabledFeatures::referrerPolicyHeaderEnabled()) {
+ if (m_documentLoader) {
String referrerPolicyHeader = m_documentLoader->response().httpHeaderField(
HTTPNames::Referrer_Policy);
if (!referrerPolicyHeader.isNull()) {
« no previous file with comments | « net/url_request/url_request_job_unittest.cc ('k') | third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698