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

Unified Diff: ui/views/controls/menu/menu_scroll_view_container.cc

Issue 2259753003: 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 | « ui/views/controls/button/md_text_button.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_scroll_view_container.cc
diff --git a/ui/views/controls/menu/menu_scroll_view_container.cc b/ui/views/controls/menu/menu_scroll_view_container.cc
index 9350283fde1a887f51bfe58ae296148a2717fe7b..cbbe72ee221720b984c3856353e56123427fb6d6 100644
--- a/ui/views/controls/menu/menu_scroll_view_container.cc
+++ b/ui/views/controls/menu/menu_scroll_view_container.cc
@@ -294,8 +294,8 @@ void MenuScrollViewContainer::CreateDefaultBorder() {
ui::NativeTheme::kColorId_MenuBorderColor)
: gfx::kPlaceholderColor;
SetBorder(views::Border::CreateBorderPainter(
- base::WrapUnique(
- new views::RoundRectPainter(color, menu_config.corner_radius)),
+ base::MakeUnique<views::RoundRectPainter>(color,
+ menu_config.corner_radius),
gfx::Insets(top, left, bottom, right)));
} else {
SetBorder(Border::CreateEmptyBorder(top, left, bottom, right));
« no previous file with comments | « ui/views/controls/button/md_text_button.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698