cros: move PowerPrefs to ash
Changes:
- Move *Power* prefs to ash/public/cpp/ash_pref_names.h
- Move *PowerPrefs* to ash/system/power/power_prefs.h
- Change DevicePowerHandlerTest to browser test.
This CL will support updating power prefs based on screen brightness
change.
[email protected]
Bug: 812504
Test: tested on device, looks fine. Also migrated test coverage.
Change-Id: Id667c0c2c930287a7e8260ba22bb582b7e1a8b58
Reviewed-on: https://chromium-review.googlesource.com/986889
Commit-Queue: Qiang Xu <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: Dan Erat <[email protected]>
Cr-Commit-Position: refs/heads/master@{#549765}
diff --git a/ash/shell_test_api.h b/ash/shell_test_api.h
index 5dcb2c2..082b8c42 100644
--- a/ash/shell_test_api.h
+++ b/ash/shell_test_api.h
@@ -16,6 +16,7 @@
class DragDropController;
class MessageCenterController;
class NativeCursorManagerAsh;
+class PowerPrefs;
class ScreenPositionController;
class Shell;
class SystemGestureEventFilter;
@@ -36,6 +37,7 @@
ScreenPositionController* screen_position_controller();
NativeCursorManagerAsh* native_cursor_manager_ash();
DragDropController* drag_drop_controller();
+ PowerPrefs* power_prefs();
// Calls the private method.
void OnLocalStatePrefServiceInitialized(