Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1076)

Unified Diff: chrome/browser/spellchecker/spellcheck_service.cc

Issue 320513002: Remove base::kInvalidPlatformFileValue from Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698