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

Unified Diff: content/browser/device_monitor_udev.cc

Issue 1008613002: favor DCHECK_CURRENTLY_ON for better logs in content/browser/[a-d]* (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/device_monitor_udev.cc
diff --git a/content/browser/device_monitor_udev.cc b/content/browser/device_monitor_udev.cc
index 6e2b4ec3b0acf71983a17ed37603331e901c9d97..82529e17908c947c7d4d9e1e9c510b35afe209af 100644
--- a/content/browser/device_monitor_udev.cc
+++ b/content/browser/device_monitor_udev.cc
@@ -45,7 +45,7 @@ DeviceMonitorLinux::~DeviceMonitorLinux() {
}
void DeviceMonitorLinux::Initialize() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
// We want to be notified of IO message loop destruction to delete |udev_|.
base::MessageLoop::current()->AddDestructionObserver(this);
@@ -66,7 +66,7 @@ void DeviceMonitorLinux::WillDestroyCurrentMessageLoop() {
}
void DeviceMonitorLinux::OnDevicesChanged(udev_device* device) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(device);
base::SystemMonitor::DeviceType device_type =
« no previous file with comments | « content/browser/device_monitor_mac.mm ('k') | content/browser/device_sensors/device_light_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698