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

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

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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 | « Source/core/html/track/InbandTextTrack.cpp ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/PingLoader.cpp
diff --git a/Source/core/loader/PingLoader.cpp b/Source/core/loader/PingLoader.cpp
index d382e0049f03fa7b1c7403b5035511168fa43aaf..853b7067fb5895a5aadb1365f5821a1210e78408 100644
--- a/Source/core/loader/PingLoader.cpp
+++ b/Source/core/loader/PingLoader.cpp
@@ -47,7 +47,6 @@
#include "public/platform/Platform.h"
#include "public/platform/WebURLLoader.h"
#include "wtf/OwnPtr.h"
-#include "wtf/UnusedParam.h"
namespace WebCore {
@@ -68,8 +67,7 @@ void PingLoader::loadImage(Frame* frame, const KURL& url)
OwnPtr<PingLoader> pingLoader = adoptPtr(new PingLoader(frame, request));
// Leak the ping loader, since it will kill itself as soon as it receives a response.
- PingLoader* leakedPingLoader = pingLoader.leakPtr();
- UNUSED_PARAM(leakedPingLoader);
+ PingLoader* ALLOW_UNUSED leakedPingLoader = pingLoader.leakPtr();
}
// http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing
@@ -98,8 +96,7 @@ void PingLoader::sendPing(Frame* frame, const KURL& pingURL, const KURL& destina
OwnPtr<PingLoader> pingLoader = adoptPtr(new PingLoader(frame, request));
// Leak the ping loader, since it will kill itself as soon as it receives a response.
- PingLoader* leakedPingLoader = pingLoader.leakPtr();
- UNUSED_PARAM(leakedPingLoader);
+ PingLoader* ALLOW_UNUSED leakedPingLoader = pingLoader.leakPtr();
}
void PingLoader::sendViolationReport(Frame* frame, const KURL& reportURL, PassRefPtr<FormData> report, ViolationReportType type)
@@ -117,8 +114,7 @@ void PingLoader::sendViolationReport(Frame* frame, const KURL& reportURL, PassRe
OwnPtr<PingLoader> pingLoader = adoptPtr(new PingLoader(frame, request, SecurityOrigin::create(reportURL)->isSameSchemeHostPort(frame->document()->securityOrigin()) ? AllowStoredCredentials : DoNotAllowStoredCredentials));
// Leak the ping loader, since it will kill itself as soon as it receives a response.
- PingLoader* leakedPingLoader = pingLoader.leakPtr();
- UNUSED_PARAM(leakedPingLoader);
+ PingLoader* ALLOW_UNUSED leakedPingLoader = pingLoader.leakPtr();
}
PingLoader::PingLoader(Frame* frame, ResourceRequest& request, StoredCredentials credentialsAllowed)
« no previous file with comments | « Source/core/html/track/InbandTextTrack.cpp ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698