commit | 36234e537d044444b55d8f22587e8ce736d27d13 | [log] [tgz] |
---|---|---|
author | Qiang Xu <[email protected]> | Wed Apr 11 04:54:02 2018 |
committer | Commit Bot <[email protected]> | Wed Apr 11 04:54:02 2018 |
tree | 26aa1a0ece47549c9378b9d0b6764497f5d76272 | |
parent | f193ff99bed7f70f467c094673abf1ac918ef52a [diff] [blame] |
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.cc b/ash/shell_test_api.cc index 5579671..1a1687f 100644 --- a/ash/shell_test_api.cc +++ b/ash/shell_test_api.cc
@@ -48,6 +48,10 @@ return shell_->drag_drop_controller_.get(); } +PowerPrefs* ShellTestApi::power_prefs() { + return shell_->power_prefs_.get(); +} + void ShellTestApi::OnLocalStatePrefServiceInitialized( std::unique_ptr<PrefService> pref_service) { shell_->OnLocalStatePrefServiceInitialized(std::move(pref_service));