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

Unified Diff: ui/views/style/platform_style_mac.mm

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/style/platform_style.cc ('k') | ui/views/test/combobox_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style_mac.mm
diff --git a/ui/views/style/platform_style_mac.mm b/ui/views/style/platform_style_mac.mm
index d10a483690b9f589581efc3ac0d84320fd54fb78..0d433480bfd1dfdca296d7a31376d3f7aaa44e19 100644
--- a/ui/views/style/platform_style_mac.mm
+++ b/ui/views/style/platform_style_mac.mm
@@ -52,21 +52,21 @@ std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() {
// static
std::unique_ptr<Background> PlatformStyle::CreateComboboxBackground(
int shoulder_width) {
- return base::WrapUnique(new ComboboxBackgroundMac(shoulder_width));
+ return base::MakeUnique<ComboboxBackgroundMac>(shoulder_width);
}
// static
std::unique_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
Button::ButtonStyle style) {
if (style == Button::STYLE_BUTTON)
- return base::WrapUnique(new DialogButtonBorderMac());
+ return base::MakeUnique<DialogButtonBorderMac>();
- return base::WrapUnique(new LabelButtonAssetBorder(style));
+ return base::MakeUnique<LabelButtonAssetBorder>(style);
}
// static
std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
- return base::WrapUnique(new CocoaScrollBar(is_horizontal));
+ return base::MakeUnique<CocoaScrollBar>(is_horizontal);
}
// static
« no previous file with comments | « ui/views/style/platform_style.cc ('k') | ui/views/test/combobox_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698