Index: chrome/browser/chrome_browser_main_extra_parts_ash.cc |
diff --git a/chrome/browser/chrome_browser_main_extra_parts_ash.cc b/chrome/browser/chrome_browser_main_extra_parts_ash.cc |
index a409e361877dc9e3558363a1b66e0fe64bfdf79e..9329e43ff23a80b59fc3678949771daa086c8d24 100644 |
--- a/chrome/browser/chrome_browser_main_extra_parts_ash.cc |
+++ b/chrome/browser/chrome_browser_main_extra_parts_ash.cc |
@@ -6,10 +6,12 @@ |
#include "ash/accelerators/accelerator_controller.h" |
#include "ash/ash_switches.h" |
+#include "ash/high_contrast/high_contrast_controller.h" |
#include "ash/shell.h" |
#include "ash/wm/key_rewriter_event_filter.h" |
#include "ash/wm/property_util.h" |
#include "base/command_line.h" |
+#include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/views/ash/caps_lock_handler.h" |
#include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" |
@@ -76,6 +78,9 @@ void ChromeBrowserMainExtraPartsAsh::PreProfileInit() { |
shell->accelerator_controller()->SetVolumeControlDelegate( |
scoped_ptr<ash::VolumeControlDelegate>(new VolumeController).Pass()); |
+ if (chromeos::accessibility::IsHighContrastEnabled()) |
sky
2012/05/17 15:54:15
Can you remove the if, so that it's:
ash::Shell::
Zachary Kuznia
2012/05/21 05:50:05
Done.
|
+ ash::Shell::GetInstance()->high_contrast_controller()->SetEnabled(true); |
+ |
if (!CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kDisableZeroBrowsersOpenForTests)) |
BrowserList::StartKeepAlive(); |