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

Unified Diff: Source/core/loader/BeaconLoader.cpp

Issue 360233005: Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: Source/core/loader/BeaconLoader.cpp
diff --git a/Source/core/loader/BeaconLoader.cpp b/Source/core/loader/BeaconLoader.cpp
index d7608cfbea9d3113492bd7211af61c0f4e633f54..c418f2ec724af72233b90f901fe621d03b1a3467 100644
--- a/Source/core/loader/BeaconLoader.cpp
+++ b/Source/core/loader/BeaconLoader.cpp
@@ -21,7 +21,7 @@ namespace WebCore {
void BeaconLoader::prepareRequest(LocalFrame* frame, ResourceRequest& request)
{
// NOTE: do not distinguish Beacon by target type.
- request.setTargetType(ResourceRequest::TargetIsPing);
+ request.setRequestContext(ResourceRequest::PingContext);
request.setHTTPMethod("POST");
request.setHTTPHeaderField("Cache-Control", "max-age=0");
request.setAllowStoredCredentials(true);

Powered by Google App Engine
This is Rietveld 408576698