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

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

Issue 2445653003: Apply user agent exactly once for requests from Blink. (Closed)
Patch Set: remove applyUserAgent in addAdditionalRequestHeaders 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
« 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: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 8da9e294e34db20cb2470809582abad0cb3dd2c2..f2c1ef149afed1e465525aae43766284f703b0d9 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -248,8 +248,6 @@ void FrameFetchContext::addAdditionalRequestHeaders(ResourceRequest& request,
if (frame()->settings() && frame()->settings()->dataSaverEnabled())
request.setHTTPHeaderField("Save-Data", "on");
-
- frame()->loader().applyUserAgent(request);
}
CachePolicy FrameFetchContext::getCachePolicy() const {
« 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