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

Unified Diff: chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc

Issue 1049873005: [chrome/browser/chromeos/] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
diff --git a/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc b/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
index 60791f94d666874ea868a278e583e34ea6e3e299..b9e92df6d83dab6270822ae2b481abd34e52d5cb 100644
--- a/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
+++ b/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
@@ -60,7 +60,7 @@ InputDeviceSettingsImplOzone::InputDeviceSettingsImplOzone()
void InputDeviceSettingsImplOzone::TouchpadExists(
const DeviceExistsCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
callback.Run(input_controller_->HasTouchpad());
}
@@ -99,7 +99,7 @@ void InputDeviceSettingsImplOzone::SetTapDragging(bool enabled) {
void InputDeviceSettingsImplOzone::MouseExists(
const DeviceExistsCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
callback.Run(input_controller_->HasMouse());
}

Powered by Google App Engine
This is Rietveld 408576698