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

Unified Diff: ash/shell/app_list.cc

Issue 2379863002: Fix object ownership in ui/base/models. (Closed)
Patch Set: fix Created 4 years, 3 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 | « no previous file | chrome/browser/android/bookmarks/bookmark_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/app_list.cc
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index e7e79de016c129105100a3c09da90a7806f7a433..66a2982946f71163b760d93406f56b21dd470582 100644
--- a/ash/shell/app_list.cc
+++ b/ash/shell/app_list.cc
@@ -15,6 +15,7 @@
#include "base/files/file_path.h"
#include "base/i18n/case_conversion.h"
#include "base/i18n/string_search.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -268,7 +269,8 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
base::UTF8ToUTF16(WindowTypeShelfItem::GetTitle(type));
if (base::i18n::StringSearchIgnoringCaseAndAccents(query, title, NULL,
NULL)) {
- model_->results()->Add(new ExampleSearchResult(type, query));
+ model_->results()->Add(
+ base::MakeUnique<ExampleSearchResult>(type, query));
}
}
}
« no previous file with comments | « no previous file | chrome/browser/android/bookmarks/bookmark_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698