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

Unified Diff: content/browser/loader/resource_loader.cc

Issue 2785523002: Reduce/remove usage of BrowserThread in content/browser/loader. (Closed)
Patch Set: Remove DCHECK Created 3 years, 9 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 | « content/browser/loader/resource_loader.h ('k') | content/browser/loader/resource_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader.cc
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index eafe82997771ac9c798d9e5676f69aaae2ce273d..d2a1bb1945d964138dc397963ac3b25c743c83b9 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -446,7 +446,7 @@ void ResourceLoader::OnReadCompleted(net::URLRequest* unused, int bytes_read) {
void ResourceLoader::CancelSSLRequest(int error,
const net::SSLInfo* ssl_info) {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ DCHECK(thread_checker_.CalledOnValidThread());
// The request can be NULL if it was cancelled by the renderer (as the
// request of the user navigating to a new page from the location bar).
@@ -462,7 +462,7 @@ void ResourceLoader::CancelSSLRequest(int error,
}
void ResourceLoader::ContinueSSLRequest() {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ DCHECK(thread_checker_.CalledOnValidThread());
DVLOG(1) << "ContinueSSLRequest() url: " << request_->url().spec();
« no previous file with comments | « content/browser/loader/resource_loader.h ('k') | content/browser/loader/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698