chromeos: Make peripheral notifications use message center

Desktop / Chromium - Sammie Quon [google.com] - 9 August 2017 22:11 EDT

They current send notifications via the notification ui manager, but since it does not matter what profile, they should be using message center instead. Precursor work for moving the peripheral observer into ash.

Test: browser_tests "PeripheralBatteryObserverTest.*" Bug: Change-Id: Ic774e24fb123d28404a2a426fc449708ccbdd880 Reviewed-on: https://chromium-review.googlesource.com/607447 Commit-Queue: Sammie Quon

b5f3c0d chromeos: Make peripheral notifications use message center.
chrome/browser/chromeos/BUILD.gn | 1 +
.../chromeos/power/peripheral_battery_observer.cc | 142 ++++++-------
.../chromeos/power/peripheral_battery_observer.h | 13 +-
.../peripheral_battery_observer_browsertest.cc | 220 ---------------------
.../power/peripheral_battery_observer_unittest.cc | 193 ++++++++++++++++++
chrome/test/BUILD.gn | 1 -
6 files changed, 261 insertions(+), 309 deletions(-)

Upstream: git.chromium.org


  • Share