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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLRequest.cpp

Issue 2811463002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/exported (Closed)
Patch Set: rebase Created 3 years, 8 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/platform/exported/WebURLRequest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
index 0fbd5026eea59ad102108c035b72ec8effabca37..e214fdd5b023b1c31f2322ddaa450bda00f1678a 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
@@ -162,7 +162,7 @@ WebString WebURLRequest::HttpHeaderField(const WebString& name) const {
void WebURLRequest::SetHTTPHeaderField(const WebString& name,
const WebString& value) {
- RELEASE_ASSERT(!DeprecatedEqualIgnoringCase(name, "referer"));
+ CHECK(!DeprecatedEqualIgnoringCase(name, "referer"));
resource_request_->SetHTTPHeaderField(name, value);
}
@@ -170,7 +170,7 @@ void WebURLRequest::SetHTTPReferrer(const WebString& web_referrer,
WebReferrerPolicy referrer_policy) {
// WebString doesn't have the distinction between empty and null. We use
// the null WTFString for referrer.
- ASSERT(Referrer::NoReferrer() == String());
+ DCHECK_EQ(Referrer::NoReferrer(), String());
String referrer =
web_referrer.IsEmpty() ? Referrer::NoReferrer() : String(web_referrer);
resource_request_->SetHTTPReferrer(

Powered by Google App Engine
This is Rietveld 408576698