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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_util.cc

Issue 10407089: Revert 138212 - Implement High Contrast mode for Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/chromeos/accessibility/accessibility_util.cc
===================================================================
--- chrome/browser/chromeos/accessibility/accessibility_util.cc (revision 138238)
+++ chrome/browser/chromeos/accessibility/accessibility_util.cc (working copy)
@@ -6,8 +6,6 @@
#include <queue>
-#include "ash/high_contrast/high_contrast_controller.h"
-#include "ash/shell.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
@@ -166,10 +164,6 @@
PrefService* pref_service = g_browser_process->local_state();
pref_service->SetBoolean(prefs::kHighContrastEnabled, enabled);
pref_service->CommitPendingWrite();
-
-#if defined(USE_ASH)
- ash::Shell::GetInstance()->high_contrast_controller()->SetEnabled(enabled);
-#endif
}
void EnableScreenMagnifier(bool enabled) {
@@ -211,16 +205,6 @@
return spoken_feedback_enabled;
}
-bool IsHighContrastEnabled() {
- if (!g_browser_process) {
- return false;
- }
- PrefService* prefs = g_browser_process->local_state();
- bool high_contrast_enabled = prefs &&
- prefs->GetBoolean(prefs::kHighContrastEnabled);
- return high_contrast_enabled;
-}
-
void MaybeSpeak(const std::string& utterance) {
if (IsSpokenFeedbackEnabled())
Speak(utterance);
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_util.h ('k') | chrome/browser/resources/options2/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698