From 67700a92e622aebd70e72b8dbe4cee4efdf9878a Mon Sep 17 00:00:00 2001
From: "ctguil@chromium.org"
 <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Sat, 18 Sep 2010 07:43:58 +0000
Subject: Remove code that enables renderer accessibility based on the
 SPI_GETSCREENREADER parameter.

Update chrome frame so that its test automation can still use renderer accessibility.

BUG=55902
TEST=none

Review URL: http://codereview.chromium.org/3383010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59899 0039d316-1c4b-4281-b951-d872f2087c98
---
 chrome_frame/test/run_all_unittests.cc | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

(limited to 'chrome_frame/test')

diff --git a/chrome_frame/test/run_all_unittests.cc b/chrome_frame/test/run_all_unittests.cc
index 4a7ee43..2c90a70 100644
--- a/chrome_frame/test/run_all_unittests.cc
+++ b/chrome_frame/test/run_all_unittests.cc
@@ -38,18 +38,7 @@ int main(int argc, char **argv) {
   TestSuite test_suite(argc, argv);
 
   SetConfigBool(kChromeFrameHeadlessMode, true);
-
-  // Pretend that a screenreader is in use to cause Chrome to generate the
-  // accessibility tree during page load. Otherwise, Chrome will send back
-  // an unpopulated tree for the first request while it fetches the tree
-  // from the renderer.
-  BOOL is_screenreader_on = FALSE;
-  SystemParametersInfo(SPI_SETSCREENREADER, TRUE, NULL, 0);
-  SystemParametersInfo(SPI_GETSCREENREADER, 0, &is_screenreader_on, 0);
-  if (!is_screenreader_on) {
-    LOG(ERROR) << "Could not set screenreader property. Tests depending on "
-               << "MSAA in CF will likely fail...";
-  }
+  SetConfigBool(kChromeFrameAccessibleMode, true);
 
   base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
   int ret = -1;
@@ -72,6 +61,7 @@ int main(int argc, char **argv) {
   }
 
   DeleteConfigValue(kChromeFrameHeadlessMode);
+  DeleteConfigValue(kChromeFrameAccessibleMode);
 
   if (crash_service)
     base::KillProcess(crash_service, 0, false);
-- 
cgit v1.1