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( |