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

Unified Diff: mash/browser/browser.cc

Issue 2260443002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | mash/task_viewer/task_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/browser/browser.cc
diff --git a/mash/browser/browser.cc b/mash/browser/browser.cc
index 1f74ce84bcd494016335dbe985c7de5a535df259..f50a8c91c3472b09a87d675f84776ae2b39b3536 100644
--- a/mash/browser/browser.cc
+++ b/mash/browser/browser.cc
@@ -788,7 +788,7 @@ class UI : public views::WidgetDelegateView,
} else {
selected_view()->GetForwardMenuItems(&entries);
}
- return base::WrapUnique(new NavMenuModel(entries, this));
+ return base::MakeUnique<NavMenuModel>(entries, this);
}
// NavMenuModel::Delegate:
@@ -862,7 +862,7 @@ void Browser::RemoveWindow(views::Widget* window) {
std::unique_ptr<navigation::View> Browser::CreateView() {
navigation::mojom::ViewFactoryPtr factory;
connector()->ConnectToInterface("exe:navigation", &factory);
- return base::WrapUnique(new navigation::View(std::move(factory)));
+ return base::MakeUnique<navigation::View>(std::move(factory));
}
void Browser::OnStart(const shell::Identity& identity) {
« no previous file with comments | « no previous file | mash/task_viewer/task_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698