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

Unified Diff: third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.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/WebHTTPLoadInfo.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp b/third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp
index f3132c24498565c57eeb383fd9a95c38c5b3611c..fea4ea6d1e6114f94cede88f3dddaa8d2e3e1c27 100644
--- a/third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp
@@ -56,22 +56,22 @@ WebHTTPLoadInfo::operator WTF::PassRefPtr<ResourceLoadInfo>() const {
}
int WebHTTPLoadInfo::HttpStatusCode() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->http_status_code;
}
void WebHTTPLoadInfo::SetHTTPStatusCode(int status_code) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->http_status_code = status_code;
}
WebString WebHTTPLoadInfo::HttpStatusText() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->http_status_text;
}
void WebHTTPLoadInfo::SetHTTPStatusText(const WebString& status_text) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->http_status_text = status_text;
}
@@ -88,44 +88,44 @@ static void AddHeader(HTTPHeaderMap* map,
void WebHTTPLoadInfo::AddRequestHeader(const WebString& name,
const WebString& value) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
AddHeader(&private_->request_headers, name, value);
}
void WebHTTPLoadInfo::AddResponseHeader(const WebString& name,
const WebString& value) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
AddHeader(&private_->response_headers, name, value);
}
WebString WebHTTPLoadInfo::RequestHeadersText() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->request_headers_text;
}
void WebHTTPLoadInfo::SetRequestHeadersText(const WebString& headers_text) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->request_headers_text = headers_text;
}
WebString WebHTTPLoadInfo::ResponseHeadersText() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->response_headers_text;
}
void WebHTTPLoadInfo::SetResponseHeadersText(const WebString& headers_text) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->response_headers_text = headers_text;
}
WebString WebHTTPLoadInfo::NpnNegotiatedProtocol() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->npn_negotiated_protocol;
}
void WebHTTPLoadInfo::SetNPNNegotiatedProtocol(
const WebString& npn_negotiated_protocol) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->npn_negotiated_protocol = npn_negotiated_protocol;
}

Powered by Google App Engine
This is Rietveld 408576698