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

Unified Diff: ash/system/tiles/tiles_default_view.cc

Issue 2965163002: [Night Light] Accessibility: Make ChromeVox speak button status on toggles (Closed)
Patch Set: Rebase Created 3 years, 5 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 | « ash/system/night_light/night_light_toggle_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tiles/tiles_default_view.cc
diff --git a/ash/system/tiles/tiles_default_view.cc b/ash/system/tiles/tiles_default_view.cc
index 9b5bd504509d474549c91a21d834fd1ebf54aaa1..efa58bd938ad4691e5efdece701de93ad379bd98 100644
--- a/ash/system/tiles/tiles_default_view.cc
+++ b/ash/system/tiles/tiles_default_view.cc
@@ -126,8 +126,7 @@ void TilesDefaultView::ButtonPressed(views::Button* sender,
} else if (NightLightController::IsFeatureEnabled() &&
sender == night_light_button_) {
Shell::Get()->metrics()->RecordUserMetricsAction(UMA_TRAY_NIGHT_LIGHT);
- Shell::Get()->night_light_controller()->Toggle();
- night_light_button_->Update();
+ night_light_button_->Toggle();
} else if (sender == lock_button_) {
Shell::Get()->metrics()->RecordUserMetricsAction(UMA_TRAY_LOCK_SCREEN);
chromeos::DBusThreadManager::Get()
« no previous file with comments | « ash/system/night_light/night_light_toggle_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698