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

Unified Diff: content/browser/webui/url_data_manager.cc

Issue 1005683003: favor DCHECK_CURRENTLY_ON for better logs in content/browser/[q-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/webui/url_data_manager.cc
diff --git a/content/browser/webui/url_data_manager.cc b/content/browser/webui/url_data_manager.cc
index 74fa0a67e1d0b6baa3a3ff8534dbe6bf3906cac7..ffd992e1463956b4454d5d9c40cc8a5f6fc19298 100644
--- a/content/browser/webui/url_data_manager.cc
+++ b/content/browser/webui/url_data_manager.cc
@@ -39,7 +39,7 @@ URLDataManager* GetFromBrowserContext(BrowserContext* context) {
static void AddDataSourceOnIOThread(
ResourceContext* resource_context,
scoped_refptr<URLDataSourceImpl> data_source) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
GetURLDataManagerForResourceContext(resource_context)->AddDataSource(
data_source.get());
}
@@ -57,7 +57,7 @@ URLDataManager::~URLDataManager() {
}
void URLDataManager::AddDataSource(URLDataSourceImpl* source) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&AddDataSourceOnIOThread,
@@ -67,7 +67,7 @@ void URLDataManager::AddDataSource(URLDataSourceImpl* source) {
// static
void URLDataManager::DeleteDataSources() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
URLDataSources sources;
{
base::AutoLock lock(g_delete_lock.Get());
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698