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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 209193002: Remove PlatformFile from spell checker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert IsEnabled behavior Created 6 years, 9 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
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698