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

Unified Diff: sync/internal_api/http_bridge.cc

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck2: withoutandroidchange Created 5 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
Index: sync/internal_api/http_bridge.cc
diff --git a/sync/internal_api/http_bridge.cc b/sync/internal_api/http_bridge.cc
index e785d029c715d529605fa42fb53a1ead4d47267a..8fc91fa2ef6e8649de825f3e51b89d026c165a7b 100644
--- a/sync/internal_api/http_bridge.cc
+++ b/sync/internal_api/http_bridge.cc
@@ -217,7 +217,7 @@ void HttpBridge::SetExtraRequestHeaders(const char * headers) {
}
void HttpBridge::SetURL(const char* url, int port) {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK_EQ(base::MessageLoop::current(), created_on_loop_);
{
base::AutoLock lock(fetch_state_lock_);
@@ -236,7 +236,7 @@ void HttpBridge::SetURL(const char* url, int port) {
void HttpBridge::SetPostPayload(const char* content_type,
int content_length,
const char* content) {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK_EQ(base::MessageLoop::current(), created_on_loop_);
{
base::AutoLock lock(fetch_state_lock_);
@@ -257,7 +257,7 @@ void HttpBridge::SetPostPayload(const char* content_type,
}
bool HttpBridge::MakeSynchronousPost(int* error_code, int* response_code) {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK_EQ(base::MessageLoop::current(), created_on_loop_);
{
base::AutoLock lock(fetch_state_lock_);

Powered by Google App Engine
This is Rietveld 408576698