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

Unified Diff: chrome/browser/chromeos/power/peripheral_battery_observer.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/power/peripheral_battery_observer.cc
diff --git a/chrome/browser/chromeos/power/peripheral_battery_observer.cc b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
index 91cedf6c1dbafcae2a297360c63ca96aa1cf85aa..a36a5edc7353e5d36e2fbfe01f8847b84081a238 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -107,7 +107,7 @@ void PeripheralBatteryObserver::PeripheralBatteryStatusReceived(
const std::string& path,
const std::string& name,
int level) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
std::string address;
if (IsBluetoothHIDBattery(path)) {
// For HID bluetooth device, device address is used as key to index
@@ -178,7 +178,7 @@ void PeripheralBatteryObserver::InitializeOnBluetoothReady(
}
void PeripheralBatteryObserver::RemoveBattery(const std::string& address) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
std::string address_lowercase = address;
base::StringToLowerASCII(&address_lowercase);
std::map<std::string, BatteryInfo>::iterator it =
« no previous file with comments | « chrome/browser/chromeos/power/cpu_data_collector.cc ('k') | chrome/browser/chromeos/settings/cros_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698