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

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

Issue 11348342: Revert 170590 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 170692)
+++ chrome/browser/chromeos/accessibility/accessibility_util.cc (working copy)
@@ -13,7 +13,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
-#include "base/metrics/histogram.h"
#include "chrome/browser/accessibility/accessibility_extension_api.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
@@ -32,7 +31,6 @@
#include "chrome/common/extensions/user_script.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "content/public/browser/browser_accessibility_state.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -114,23 +112,6 @@
std::queue<ExtensionResource> resources_;
};
-void UpdateChromeOSAccessibilityHistograms() {
- UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosSpokenFeedback",
- IsSpokenFeedbackEnabled());
- UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosHighContrast",
- IsHighContrastEnabled());
- UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosVirtualKeyboard",
- IsVirtualKeyboardEnabled());
- UMA_HISTOGRAM_ENUMERATION("Accessibility.CrosScreenMagnifier",
- GetMagnifierType(),
- 3);
-}
-
-void Initialize() {
- content::BrowserAccessibilityState::GetInstance()->AddHistogramCallback(
- base::Bind(&UpdateChromeOSAccessibilityHistograms));
-}
-
void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui) {
bool spoken_feedback_enabled = g_browser_process &&
g_browser_process->local_state()->GetBoolean(
@@ -267,16 +248,6 @@
return high_contrast_enabled;
}
-bool IsVirtualKeyboardEnabled() {
- if (!g_browser_process) {
- return false;
- }
- PrefService* prefs = g_browser_process->local_state();
- bool virtual_keyboard_enabled = prefs &&
- prefs->GetBoolean(prefs::kVirtualKeyboardEnabled);
- return virtual_keyboard_enabled;
-}
-
ash::MagnifierType GetMagnifierType() {
if (!MagnificationManager::GetInstance())
return ash::MAGNIFIER_OFF;
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_util.h ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698