Index: extensions/browser/api/sockets_tcp/sockets_tcp_api.cc |
diff --git a/extensions/browser/api/sockets_tcp/sockets_tcp_api.cc b/extensions/browser/api/sockets_tcp/sockets_tcp_api.cc |
index 6a7204c1dd9b4ff97e778d4e3632bc164e4ba0dc..f9e87ec745958ccd4610604b68f3469412f22149 100644 |
--- a/extensions/browser/api/sockets_tcp/sockets_tcp_api.cc |
+++ b/extensions/browser/api/sockets_tcp/sockets_tcp_api.cc |
@@ -457,7 +457,7 @@ SocketsTcpSecureFunction::~SocketsTcpSecureFunction() { |
} |
bool SocketsTcpSecureFunction::Prepare() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
params_ = core_api::sockets_tcp::Secure::Params::Create(*args_); |
EXTENSION_FUNCTION_VALIDATE(params_.get()); |
url_request_getter_ = browser_context()->GetRequestContext(); |
@@ -467,7 +467,7 @@ bool SocketsTcpSecureFunction::Prepare() { |
// Override the regular implementation, which would call AsyncWorkCompleted |
// immediately after Work(). |
void SocketsTcpSecureFunction::AsyncWorkStart() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
ResumableTCPSocket* socket = GetTcpSocket(params_->socket_id); |
if (!socket) { |