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

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

Issue 7563004: Add logging code to ensure that ChromeVox is loaded/unloaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility_util.cc
diff --git a/chrome/browser/chromeos/accessibility_util.cc b/chrome/browser/chromeos/accessibility_util.cc
index f9be22c923fa16a3ea64a4efd87626afad7c464b..f27c2f3e60e6063b8088eb7a731b0271ebaf5267 100644
--- a/chrome/browser/chromeos/accessibility_util.cc
+++ b/chrome/browser/chromeos/accessibility_util.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/accessibility_util.h"
+#include "base/logging.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_accessibility_api.h"
#include "chrome/browser/extensions/extension_service.h"
@@ -22,6 +23,8 @@ void EnableAccessibility(bool enabled) {
g_browser_process->local_state()->GetBoolean(
prefs::kAccessibilityEnabled);
if (accessibility_enabled == enabled) {
+ LOG(INFO) << "Accessibility is already " <<
+ (enabled ? "enabled" : "diabled") << ". Going to do nothing.";
return;
}
@@ -42,9 +45,11 @@ void EnableAccessibility(bool enabled) {
if (enabled) { // Load ChromeVox
extension_service->register_component_extension(info);
extension_service->LoadComponentExtension(info);
+ LOG(INFO) << "ChromeVox was Loaded.";
} else { // Unload ChromeVox
extension_service->UnloadComponentExtension(info);
extension_service->UnregisterComponentExtension(info);
+ LOG(INFO) << "ChromeVox was Unloaded.";
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698