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

Unified Diff: ui/app_list/search/mixer.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
« no previous file with comments | « ui/app_list/search/history_data_store_unittest.cc ('k') | ui/app_list/search/mixer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/mixer.cc
diff --git a/ui/app_list/search/mixer.cc b/ui/app_list/search/mixer.cc
index 2d079ed4fd4b26581b93fc842055a42879cecb06..e49f3ba4dd06aa283e9aee9d95b3259bad406619 100644
--- a/ui/app_list/search/mixer.cc
+++ b/ui/app_list/search/mixer.cc
@@ -320,7 +320,7 @@ void Mixer::Publish(const SortedResults& new_results,
// results.
ui_results_map.erase(ui_result->id());
} else {
- scoped_ptr<SearchResult> result_copy = new_result.Duplicate();
+ std::unique_ptr<SearchResult> result_copy = new_result.Duplicate();
result_copy->set_relevance(sort_data.score);
// Copy the result from |new_results| otherwise.
ui_results->Add(result_copy.release());
« no previous file with comments | « ui/app_list/search/history_data_store_unittest.cc ('k') | ui/app_list/search/mixer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698