Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2377703003: Support SystemTrayDelegate::ShowPowerSettings() in mustash (Closed)
Patch Set: Remove if Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/system_tray_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index a78cad3166ccac5514271bb79753e08915d87304..46b3cbd86ca8da8d086d9a5853646a6f0e93c291 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -445,14 +445,7 @@ void SystemTrayDelegateChromeOS::ShowDisplaySettings() {
}
void SystemTrayDelegateChromeOS::ShowPowerSettings() {
- // TODO(mash): Refactor out ash::PowerStatus and move to SystemTrayCommon.
- if (!(switches::PowerOverlayEnabled() ||
- (ash::PowerStatus::Get()->IsBatteryPresent() &&
- ash::PowerStatus::Get()->SupportsDualRoleDevices()))) {
- return;
- }
- content::RecordAction(base::UserMetricsAction("Tray_ShowPowerOptions"));
- ShowSettingsSubPageForActiveUser(chrome::kPowerOptionsSubPage);
+ SystemTrayCommon::ShowPowerSettings();
}
void SystemTrayDelegateChromeOS::ShowChromeSlow() {
« no previous file with comments | « chrome/browser/ui/ash/system_tray_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698