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

Unified Diff: webrtc/base/httpclient.h

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Address final nits. Created 3 years, 11 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 | « webrtc/base/httpbase.cc ('k') | webrtc/base/httpclient.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/httpclient.h
diff --git a/webrtc/base/httpclient.h b/webrtc/base/httpclient.h
index 569ff04ed83924a5ad0a684db2d96a3ae8245554..342d48f84ad425c2c07805776b53edc16a1d7572 100644
--- a/webrtc/base/httpclient.h
+++ b/webrtc/base/httpclient.h
@@ -13,6 +13,7 @@
#include <memory>
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/httpbase.h"
#include "webrtc/base/nethelpers.h"
@@ -89,7 +90,10 @@ public:
void set_uri_form(UriForm form) { uri_form_ = form; }
UriForm uri_form() const { return uri_form_; }
- void set_cache(DiskCache* cache) { ASSERT(!IsCacheActive()); cache_ = cache; }
+ void set_cache(DiskCache* cache) {
+ RTC_DCHECK(!IsCacheActive());
+ cache_ = cache;
+ }
bool cache_enabled() const { return (NULL != cache_); }
// reset clears the server, request, and response structures. It will also
« no previous file with comments | « webrtc/base/httpbase.cc ('k') | webrtc/base/httpclient.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698