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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_ash.cc

Issue 10201014: Implement High Contrast mode for Chrome OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fixes Created 8 years, 7 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
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();

Powered by Google App Engine
This is Rietveld 408576698