diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-29 20:44:35 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-29 20:44:35 +0000 |
commit | bc8f469c84f231e2813bb36a56be8b334c30e0b1 (patch) | |
tree | 58576bc2ca70035e46c03f72ba93412bc643ed1e /ash/system | |
parent | a2ec12ea9b13d01e35d84fb2d2f1780bad82fdde (diff) | |
download | chromium_src-bc8f469c84f231e2813bb36a56be8b334c30e0b1.zip chromium_src-bc8f469c84f231e2813bb36a56be8b334c30e0b1.tar.gz chromium_src-bc8f469c84f231e2813bb36a56be8b334c30e0b1.tar.bz2 |
Ash: Remove a line of log spam from unit tests
BUG=none
TEST=aura_shell_unittests
TBR=derat@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9921031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system')
-rw-r--r-- | ash/system/brightness/tray_brightness.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ash/system/brightness/tray_brightness.cc b/ash/system/brightness/tray_brightness.cc index d68488b..5203af92 100644 --- a/ash/system/brightness/tray_brightness.cc +++ b/ash/system/brightness/tray_brightness.cc @@ -141,11 +141,9 @@ void TrayBrightness::GetInitialBrightness() { BrightnessControlDelegate* delegate = Shell::GetInstance()->accelerator_controller()-> brightness_control_delegate(); - if (!delegate) { - LOG(WARNING) << "Unable to get initial brightness; " - << "BrightnessControlDelegate not yet created"; + // Worrisome, but happens in unit tests, so don't log anything. + if (!delegate) return; - } delegate->GetBrightnessPercent( base::Bind(&TrayBrightness::HandleInitialBrightness, weak_ptr_factory_.GetWeakPtr())); |