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

Unified Diff: services/prediction/dictionary_service.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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: services/prediction/dictionary_service.cc
diff --git a/services/prediction/dictionary_service.cc b/services/prediction/dictionary_service.cc
index a771b394c5c9f662395351b7ef15d90e1d028b09..e9fbc86cb233de013d423d88f8aaf06e7a8cbf6a 100644
--- a/services/prediction/dictionary_service.cc
+++ b/services/prediction/dictionary_service.cc
@@ -78,7 +78,7 @@ mojo::Array<mojo::String> DictionaryService::GetDictionarySuggestion(
default_dictionary_ = scoped_ptr<latinime::Dictionary>(
OpenDictionary(path, 0, prediction::kDictFile.size, false));
if (!default_dictionary_) {
- return suggestion_words.Clone().Pass();
+ return suggestion_words;
}
}
@@ -166,7 +166,7 @@ mojo::Array<mojo::String> DictionaryService::GetDictionarySuggestion(
suggestion_words.push_back(mojo::String(*it));
}
- return suggestion_words.Clone().Pass();
+ return suggestion_words;
}
// modified from Android JniDataUtils::constructPrevWordsInfo
« no previous file with comments | « services/kiosk_wm/merged_service_provider.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_db.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698