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

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/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

Powered by Google App Engine
This is Rietveld 408576698