Commit 82cfca19 authored by groby@chromium.org's avatar groby@chromium.org

[Spellcheck] Unify dictionary handling.

Remove platform-specific handling for dictionary.

R=rlp@chromium.org
BUG=none

Review URL: https://codereview.chromium.org/121523002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243978 0039d316-1c4b-4281-b951-d872f2087c98
parent 9be8ba95
......@@ -168,19 +168,8 @@ void SpellcheckService::InitForRenderer(content::RenderProcessHost* process) {
if (hunspell_dictionary_->GetDictionaryFile() !=
base::kInvalidPlatformFileValue) {
#if defined(OS_POSIX)
file = base::FileDescriptor(hunspell_dictionary_->GetDictionaryFile(),
false);
#elif defined(OS_WIN)
BOOL ok = ::DuplicateHandle(::GetCurrentProcess(),
hunspell_dictionary_->GetDictionaryFile(),
process->GetHandle(),
&file,
0,
false,
DUPLICATE_SAME_ACCESS);
DCHECK(ok) << ::GetLastError();
#endif
file = IPC::GetFileHandleForProcess(
hunspell_dictionary_->GetDictionaryFile(), process->GetHandle(), false);
}
process->Send(new SpellCheckMsg_Init(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment