From 8cdc6be1ec90ec5b8e8f95c55ba84e54ba67259e Mon Sep 17 00:00:00 2001 From: "slightlyoff@chromium.org" Date: Tue, 6 Oct 2009 01:04:48 +0000 Subject: Pass the renderer a11y flag to Chrome Frame-created renderers. BUG=23669 TEST=watch event32 a11y event log on pages which render in GCF. Review URL: http://codereview.chromium.org/255062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28081 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/chrome_frame_automation.cc | 2 ++ chrome_frame/chrome_launcher.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome_frame') diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index a03a39c..8304547 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -234,6 +234,8 @@ void ProxyFactory::CreateProxy(ProxyFactory::ProxyCacheEntry* entry, // Chrome Frame never wants Chrome to start up with a First Run UI. command_line->AppendSwitch(switches::kNoFirstRun); + command_line->AppendSwitch(switches::kEnableRendererAccessibility); + // Place the profile directory in // "\..\User Data\" if (!entry->profile_name.empty()) { diff --git a/chrome_frame/chrome_launcher.cc b/chrome_frame/chrome_launcher.cc index f992728..561e0ba 100644 --- a/chrome_frame/chrome_launcher.cc +++ b/chrome_frame/chrome_launcher.cc @@ -26,6 +26,7 @@ const wchar_t* kAllowedSwitches[] = { switches::kNoFirstRun, switches::kUserDataDir, switches::kLoadExtension, + switches::kEnableRendererAccessibility, }; CommandLine* CreateLaunchCommandLine() { @@ -44,7 +45,7 @@ CommandLine* CreateLaunchCommandLine() { if (file_util::PathExists(same_dir_path)) { return new CommandLine(same_dir_path.ToWStringHack()); } else { - FilePath servers_path = + FilePath servers_path = current_dir.Append(L"servers").Append(kLauncherExeBaseName); DCHECK(file_util::PathExists(servers_path)) << "What module is this? It's not in 'servers' or main output dir."; -- cgit v1.1