Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #301 from brave/fix/v61-spell-check
Browse files Browse the repository at this point in the history
Expose missing spell checking interface
  • Loading branch information
bridiver committed Sep 10, 2017
1 parent 695bade commit 85696a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions brave/browser/brave_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,19 @@ void BraveContentBrowserClient::ExposeInterfacesToRenderer(
// gap between the preparation and the execution of that IPC.
associated_registry->AddInterface(
base::Bind(&CacheStatsRecorder::Create, render_process_host->GetID()));

scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::UI);
#if BUILDFLAG(ENABLE_SPELLCHECK)
registry->AddInterface(
base::Bind(&SpellCheckHostImpl::Create, render_process_host->GetID()),
ui_task_runner);
#endif
#if BUILDFLAG(HAS_SPELLCHECK_PANEL)
registry->AddInterface(base::Bind(&SpellCheckPanelHostImpl::Create),
ui_task_runner);
#endif
}

void BraveContentBrowserClient::BindInterfaceRequest(
Expand Down

0 comments on commit 85696a7

Please sign in to comment.