| Index: chrome/browser/renderer_host/browser_render_process_host.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/browser_render_process_host.cc (revision 60480)
|
| +++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
|
| @@ -201,6 +201,7 @@
|
| ALLOW_THIS_IN_INITIALIZER_LIST(cached_dibs_cleaner_(
|
| base::TimeDelta::FromSeconds(5),
|
| this, &BrowserRenderProcessHost::ClearTransportDIBCache)),
|
| + accessibility_enabled_(false),
|
| extension_process_(false) {
|
| widget_helper_ = new RenderWidgetHelper();
|
|
|
| @@ -246,12 +247,15 @@
|
| ClearTransportDIBCache();
|
| }
|
|
|
| -bool BrowserRenderProcessHost::Init(bool is_extensions_process) {
|
| +bool BrowserRenderProcessHost::Init(
|
| + bool is_accessibility_enabled, bool is_extensions_process) {
|
| // calling Init() more than once does nothing, this makes it more convenient
|
| // for the view host which may not be sure in some cases
|
| if (channel_.get())
|
| return true;
|
|
|
| + accessibility_enabled_ = is_accessibility_enabled;
|
| +
|
| // It is possible for an extension process to be reused for non-extension
|
| // content, e.g. if an extension calls window.open.
|
| extension_process_ = extension_process_ || is_extensions_process;
|
| @@ -449,6 +453,9 @@
|
| if (logging::DialogsAreSuppressed())
|
| command_line->AppendSwitch(switches::kNoErrorDialogs);
|
|
|
| + if (accessibility_enabled_)
|
| + command_line->AppendSwitch(switches::kEnableAccessibility);
|
| +
|
| // Now send any options from our own command line we want to propogate.
|
| const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
|
| PropagateBrowserCommandLineToRenderer(browser_command_line, command_line);
|
|
|