Index: chrome/browser/spellchecker/spellcheck_service.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc |
index 23b26820a109e8b1acb09b680ea00d02fffcf96f..a0411012c86d26c1162e74392ba5301dd821b813 100644 |
--- a/chrome/browser/spellchecker/spellcheck_service.cc |
+++ b/chrome/browser/spellchecker/spellcheck_service.cc |
@@ -165,10 +165,10 @@ void SpellcheckService::InitForRenderer(content::RenderProcessHost* process) { |
PrefService* prefs = user_prefs::UserPrefs::Get(context); |
IPC::PlatformFileForTransit file = IPC::InvalidPlatformFileForTransit(); |
- if (hunspell_dictionary_->GetDictionaryFile() != |
- base::kInvalidPlatformFileValue) { |
+ if (hunspell_dictionary_->GetDictionaryFile().IsValid()) { |
file = IPC::GetFileHandleForProcess( |
- hunspell_dictionary_->GetDictionaryFile(), process->GetHandle(), false); |
+ hunspell_dictionary_->GetDictionaryFile().GetPlatformFile(), |
+ process->GetHandle(), false); |
} |
process->Send(new SpellCheckMsg_Init( |