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

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

Issue 109273002: Convert base::MemoryMappedFile to use File instead of PlatformFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/hunspell_engine.cc
diff --git a/chrome/renderer/spellchecker/hunspell_engine.cc b/chrome/renderer/spellchecker/hunspell_engine.cc
index 7900c507ad5adbfb3b62e82a2336644638070e99..b9da1659f0bb042aba95468bd41e96412f8c87a6 100644
--- a/chrome/renderer/spellchecker/hunspell_engine.cc
+++ b/chrome/renderer/spellchecker/hunspell_engine.cc
@@ -61,7 +61,9 @@ void HunspellEngine::InitializeHunspell() {
bdict_file_.reset(new base::MemoryMappedFile);
- if (bdict_file_->Initialize(file_)) {
+ // TODO(rvargas): This object should not keep file_ after passing it to
+ // bdict_file_.
groby-ooo-7-16 2013/12/27 19:52:26 If you want to address the TODO: file_, bdict_file
+ if (bdict_file_->Initialize(base::File(file_))) {
groby-ooo-7-16 2013/12/27 19:52:26 Probably want file_ to be base::File, for clearer
rvargas (doing something else) 2013/12/27 23:54:39 That sounds correct. I didn't do it because it pro
TimeTicks debug_start_time = base::Histogram::DebugNow();
hunspell_.reset(

Powered by Google App Engine
This is Rietveld 408576698