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

Unified Diff: chrome/renderer/spellchecker/spellcheck_language.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
Index: chrome/renderer/spellchecker/spellcheck_language.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_language.cc b/chrome/renderer/spellchecker/spellcheck_language.cc
index e9d101509e85af921f86cd33300e0c2dd0eb9bf0..c7ad42df1d734bc445b0349fdcc4e9bf6f3db9bd 100644
--- a/chrome/renderer/spellchecker/spellcheck_language.cc
+++ b/chrome/renderer/spellchecker/spellcheck_language.cc
@@ -16,11 +16,9 @@ SpellcheckLanguage::SpellcheckLanguage()
SpellcheckLanguage::~SpellcheckLanguage() {
}
-void SpellcheckLanguage::Init(
- base::PlatformFile file,
- const std::string& language) {
+void SpellcheckLanguage::Init(base::File file, const std::string& language) {
DCHECK(platform_spelling_engine_.get());
- platform_spelling_engine_->Init(file);
+ platform_spelling_engine_->Init(file.Pass());
character_attributes_.SetDefaultLanguage(language);
text_iterator_.Reset();
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_language.h ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698