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

Unified Diff: net/url_request/url_request.cc

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge in MessageLoop conflict from upstream. Created 8 years, 6 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 915cd58de5c2610393fd0052d5b0cd95e541884d..9df220b0aaae6a010e83a02bc05a4ab08905b78d 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -157,9 +157,9 @@ URLRequest::URLRequest(const GURL& url,
SIMPLE_STATS_COUNTER("URLRequestCount");
// Sanity check out environment.
- DCHECK(MessageLoop::current()) <<
- "The current MessageLoop must exist";
- DCHECK_EQ(MessageLoop::TYPE_IO, MessageLoop::current()->type()) <<
+ DCHECK(MessageLoop::current()) << "The current MessageLoop must exist";
+
+ DCHECK(MessageLoop::current()->IsType(MessageLoop::TYPE_IO)) << ""
"The current MessageLoop must be TYPE_IO";
CHECK(context);

Powered by Google App Engine
This is Rietveld 408576698