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

Unified Diff: net/url_request/url_request.cc

Issue 14197014: Add TestBrowserThreadBundle into RenderViewHostTestHarness. Kill some unnecessary real threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: platform specific dchecks should be platform specific Created 7 years, 7 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: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 3487c712ff4eba3a044ff9626601a0d58aea9f4c..d5b68302a0a6f97f5d15c5ec8aa84cdc29998d0f 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -227,9 +227,6 @@ URLRequest::URLRequest(const GURL& url,
// Sanity check out environment.
DCHECK(MessageLoop::current()) << "The current MessageLoop must exist";
- DCHECK(MessageLoop::current()->IsType(MessageLoop::TYPE_IO)) << ""
- "The current MessageLoop must be TYPE_IO";
-
CHECK(context);
context->url_requests()->insert(this);
@@ -265,9 +262,6 @@ URLRequest::URLRequest(const GURL& url,
// Sanity check out environment.
DCHECK(MessageLoop::current()) << "The current MessageLoop must exist";
- DCHECK(MessageLoop::current()->IsType(MessageLoop::TYPE_IO)) << ""
- "The current MessageLoop must be TYPE_IO";
-
CHECK(context);
context->url_requests()->insert(this);

Powered by Google App Engine
This is Rietveld 408576698