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

Unified Diff: content/public/browser/browser_child_process_host_iterator.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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: content/public/browser/browser_child_process_host_iterator.cc
diff --git a/content/public/browser/browser_child_process_host_iterator.cc b/content/public/browser/browser_child_process_host_iterator.cc
index a2aa0473b6f373d1f918ade89ded861a6f4eebdc..e94775fb26d2a9ce9f31ba9ea427858b6e4d66fb 100644
--- a/content/public/browser/browser_child_process_host_iterator.cc
+++ b/content/public/browser/browser_child_process_host_iterator.cc
@@ -12,15 +12,15 @@ namespace content {
BrowserChildProcessHostIterator::BrowserChildProcessHostIterator()
: all_(true), process_type_(PROCESS_TYPE_UNKNOWN) {
- CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) <<
- "BrowserChildProcessHostIterator must be used on the IO thread.";
+ // BrowserChildProcessHostIterator must be used on the IO thread.
+ CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
iterator_ = BrowserChildProcessHostImpl::GetIterator()->begin();
}
BrowserChildProcessHostIterator::BrowserChildProcessHostIterator(int type)
: all_(false), process_type_(type) {
- CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) <<
- "BrowserChildProcessHostIterator must be used on the IO thread.";
+ // BrowserChildProcessHostIterator must be used on the IO thread.
+ CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK_NE(PROCESS_TYPE_RENDERER, type) <<
"BrowserChildProcessHostIterator doesn't work for renderer processes; "
"try RenderProcessHost::AllHostsIterator() instead.";

Powered by Google App Engine
This is Rietveld 408576698