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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_model_builder.cc

Issue 2251263003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/arc/arc_app_model_builder.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_model_builder.cc b/chrome/browser/ui/app_list/arc/arc_app_model_builder.cc
index b10e01bcb3e701829f7a7244bee98b8e5f449b63..eb081a1cd58b36268fcb461c702b75241155fbc4 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_model_builder.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_model_builder.cc
@@ -40,8 +40,8 @@ ArcAppItem* ArcAppModelBuilder::GetArcAppItem(const std::string& app_id) {
std::unique_ptr<ArcAppItem> ArcAppModelBuilder::CreateApp(
const std::string& app_id,
const ArcAppListPrefs::AppInfo& app_info) {
- return base::WrapUnique(new ArcAppItem(profile(), GetSyncItem(app_id), app_id,
- app_info.name));
+ return base::MakeUnique<ArcAppItem>(profile(), GetSyncItem(app_id), app_id,
+ app_info.name);
}
void ArcAppModelBuilder::OnAppRegistered(

Powered by Google App Engine
This is Rietveld 408576698