Index: chrome/browser/ui/ash/ash_init.cc |
diff --git a/chrome/browser/ui/ash/ash_init.cc b/chrome/browser/ui/ash/ash_init.cc |
index 5b552177f039be0a0dbb4f391475738584f9c343..ec5f3b69fe1be843b0c0697701ed72558843a2ea 100644 |
--- a/chrome/browser/ui/ash/ash_init.cc |
+++ b/chrome/browser/ui/ash/ash_init.cc |
@@ -8,6 +8,7 @@ |
#include "ash/ash_switches.h" |
#include "ash/high_contrast/high_contrast_controller.h" |
#include "ash/magnifier/magnification_controller.h" |
+#include "ash/magnifier/partial_magnification_controller.h" |
#include "ash/shell.h" |
#include "ash/wm/event_rewriter_event_filter.h" |
#include "ash/wm/property_util.h" |
@@ -89,8 +90,12 @@ void OpenAsh() { |
ash::Shell::GetInstance()->high_contrast_controller()->SetEnabled( |
chromeos::accessibility::IsHighContrastEnabled()); |
+ chromeos::accessibility::ScreenMagnifierType magnifier_type = |
+ chromeos::accessibility::GetScreenMagnifierType(); |
ash::Shell::GetInstance()->magnification_controller()->SetEnabled( |
- chromeos::accessibility::IsScreenMagnifierEnabled()); |
+ magnifier_type == chromeos::accessibility::MagnifierFull); |
+ ash::Shell::GetInstance()->partial_magnification_controller()->SetEnabled( |
+ magnifier_type == chromeos::accessibility::MagnifierPartial); |
if (!CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kDisableZeroBrowsersOpenForTests)) { |