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

Unified Diff: chrome/browser/ui/app_list/search/extension_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/extension_app_result.cc
diff --git a/chrome/browser/ui/app_list/search/extension_app_result.cc b/chrome/browser/ui/app_list/search/extension_app_result.cc
index 877fc96087065a3d1b3f5d4f30745e8ed43e440d..52ff6ab22ee1e1cec3c7f00dbf253cd1bde7cacc 100644
--- a/chrome/browser/ui/app_list/search/extension_app_result.cc
+++ b/chrome/browser/ui/app_list/search/extension_app_result.cc
@@ -90,9 +90,9 @@ void ExtensionAppResult::Open(int event_flags) {
}
std::unique_ptr<SearchResult> ExtensionAppResult::Duplicate() const {
- std::unique_ptr<SearchResult> copy(
- new ExtensionAppResult(profile(), app_id(), controller(),
- display_type() == DISPLAY_RECOMMENDATION));
+ std::unique_ptr<SearchResult> copy = base::MakeUnique<ExtensionAppResult>(
+ 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