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

Unified Diff: chrome/browser/ui/app_list/search/arc_app_result.cc

Issue 2701123002: AppList Performance Optimization 2 (Closed)
Patch Set: Cache the tokenized name Created 3 years, 10 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: chrome/browser/ui/app_list/search/arc_app_result.cc
diff --git a/chrome/browser/ui/app_list/search/arc_app_result.cc b/chrome/browser/ui/app_list/search/arc_app_result.cc
index 5079b991d8450b4727ab4dc982ed30ba1d9364dc..7467dab77dbff89af5e46face950ed041257d155 100644
--- a/chrome/browser/ui/app_list/search/arc_app_result.cc
+++ b/chrome/browser/ui/app_list/search/arc_app_result.cc
@@ -56,9 +56,9 @@ void ArcAppResult::Open(int event_flags) {
}
std::unique_ptr<SearchResult> ArcAppResult::Duplicate() const {
- std::unique_ptr<SearchResult> copy(
- new ArcAppResult(profile(), app_id(), controller(),
- display_type() == DISPLAY_RECOMMENDATION));
+ std::unique_ptr<SearchResult> copy =
+ base::MakeUnique<ArcAppResult>(profile(), app_id(), controller(),
+ display_type() == DISPLAY_RECOMMENDATION);
copy->set_title(title());
copy->set_title_tags(title_tags());
copy->set_relevance(relevance());

Powered by Google App Engine
This is Rietveld 408576698