| Index: chrome/browser/renderer_host/browser_render_process_host.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/browser_render_process_host.cc (revision 32064)
|
| +++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
|
| @@ -57,7 +57,6 @@
|
| #include "grit/generated_resources.h"
|
| #include "ipc/ipc_logging.h"
|
| #include "ipc/ipc_message.h"
|
| -#include "ipc/ipc_platform_file.h"
|
| #include "ipc/ipc_switches.h"
|
|
|
| #if defined(OS_WIN)
|
| @@ -1137,23 +1136,13 @@
|
| SpellCheckHost* spellcheck_host = profile()->GetSpellCheckHost();
|
| if (spellcheck_host) {
|
| PrefService* prefs = profile()->GetPrefs();
|
| - IPC::PlatformFileForTransit file;
|
| -#if defined(OS_POSIX)
|
| - file = base::FileDescriptor(spellcheck_host->bdict_file(), false);
|
| -#elif defined(OS_WIN)
|
| - ::DuplicateHandle(::GetCurrentProcess(), spellcheck_host->bdict_file(),
|
| - GetHandle(), &file, 0, false, DUPLICATE_SAME_ACCESS);
|
| -#endif
|
| Send(new ViewMsg_SpellChecker_Init(
|
| - file,
|
| - spellcheck_host->custom_words(),
|
| + spellcheck_host->bdict_fd(), spellcheck_host->custom_words(),
|
| spellcheck_host->language(),
|
| prefs->GetBoolean(prefs::kEnableAutoSpellCorrect)));
|
| } else {
|
| Send(new ViewMsg_SpellChecker_Init(
|
| - IPC::PlatformFileForTransit(),
|
| - std::vector<std::string>(),
|
| - std::string(),
|
| + base::FileDescriptor(), std::vector<std::string>(), std::string(),
|
| false));
|
| }
|
| }
|
|
|