Index: chrome/renderer/spellchecker/spellcheck.cc |
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc |
index 51c0ba9414524e0a6ca13b65781c6f902fc073d3..2150dd2f91130e0522f74a3154e71b05ee9cca16 100644 |
--- a/chrome/renderer/spellchecker/spellcheck.cc |
+++ b/chrome/renderer/spellchecker/spellcheck.cc |
@@ -134,7 +134,7 @@ void SpellCheck::OnInit(IPC::PlatformFileForTransit bdict_file, |
const std::set<std::string>& custom_words, |
const std::string& language, |
bool auto_spell_correct) { |
- Init(IPC::PlatformFileForTransitToPlatformFile(bdict_file), |
+ Init(IPC::PlatformFileForTransitToFile(bdict_file), |
custom_words, language); |
auto_spell_correct_turned_on_ = auto_spell_correct; |
#if !defined(OS_MACOSX) |
@@ -167,10 +167,10 @@ void SpellCheck::OnRequestDocumentMarkers() { |
// TODO(groby): Make sure we always have a spelling engine, even before Init() |
// is called. |
-void SpellCheck::Init(base::PlatformFile file, |
+void SpellCheck::Init(base::File file, |
const std::set<std::string>& custom_words, |
const std::string& language) { |
- spellcheck_.Init(file, language); |
+ spellcheck_.Init(file.Pass(), language); |
custom_dictionary_.Init(custom_words); |
} |