Index: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc |
index ea82a0c2578f2a7d2836cf214f902661d536b9c8..deef1514bbb553aece54b3ee75dbd5ba856d3081 100644 |
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc |
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc |
@@ -306,7 +306,7 @@ SpellcheckHunspellDictionary::OpenDictionaryFile(const base::FilePath& path) { |
base::DeleteFile(dictionary.path, false); |
} |
- return dictionary.Pass(); |
+ return dictionary; |
} |
// The default place where the spellcheck dictionary resides is |
@@ -329,7 +329,7 @@ SpellcheckHunspellDictionary::InitializeDictionaryLocation( |
void SpellcheckHunspellDictionary::InitializeDictionaryLocationComplete( |
DictionaryFile file) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
- dictionary_file_ = file.Pass(); |
+ dictionary_file_ = std::move(file); |
if (!dictionary_file_.file.IsValid()) { |
// Notify browser tests that this dictionary is corrupted. Skip downloading |