From 2f4a8e1220d91ba95c2c46ec232dd53d27807ecd Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 25 Oct 2011 03:06:12 +0000 Subject: Revert 107042 - Replace most LOG/CHECK statements with DLOG/DCHECK statements in base. I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Review URL: http://codereview.chromium.org/8368009 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/8351025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107051 0039d316-1c4b-4281-b951-d872f2087c98 --- base/system_monitor/system_monitor.cc | 8 ++++---- base/system_monitor/system_monitor_win.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'base/system_monitor') diff --git a/base/system_monitor/system_monitor.cc b/base/system_monitor/system_monitor.cc index 5131fbf..2631789 100644 --- a/base/system_monitor/system_monitor.cc +++ b/base/system_monitor/system_monitor.cc @@ -86,18 +86,18 @@ void SystemMonitor::RemoveObserver(PowerObserver* obs) { } void SystemMonitor::NotifyPowerStateChange() { - DVLOG(1) << "PowerStateChange: " << (BatteryPower() ? "On" : "Off") - << " battery"; + VLOG(1) << "PowerStateChange: " << (BatteryPower() ? "On" : "Off") + << " battery"; observer_list_->Notify(&PowerObserver::OnPowerStateChange, BatteryPower()); } void SystemMonitor::NotifySuspend() { - DVLOG(1) << "Power Suspending"; + VLOG(1) << "Power Suspending"; observer_list_->Notify(&PowerObserver::OnSuspend); } void SystemMonitor::NotifyResume() { - DVLOG(1) << "Power Resuming"; + VLOG(1) << "Power Resuming"; observer_list_->Notify(&PowerObserver::OnResume); } diff --git a/base/system_monitor/system_monitor_win.cc b/base/system_monitor/system_monitor_win.cc index a8cd54a..84f2b2e 100644 --- a/base/system_monitor/system_monitor_win.cc +++ b/base/system_monitor/system_monitor_win.cc @@ -41,7 +41,7 @@ void SystemMonitor::ProcessWmPowerBroadcastMessage(int event_id) { bool SystemMonitor::IsBatteryPower() { SYSTEM_POWER_STATUS status; if (!GetSystemPowerStatus(&status)) { - DLOG(ERROR) << "GetSystemPowerStatus failed: " << GetLastError(); + LOG(ERROR) << "GetSystemPowerStatus failed: " << GetLastError(); return false; } return (status.ACLineStatus == 0); -- cgit v1.1