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

Unified Diff: ui/views/style/platform_style.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/style/mac/dialog_button_border_mac_unittest.cc ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.cc
diff --git a/ui/views/style/platform_style.cc b/ui/views/style/platform_style.cc
index e1da29f3068ddaf185323bab144c7509795a616e..829e6864b73f165ec4ae09dd255f1b075955cbf9 100644
--- a/ui/views/style/platform_style.cc
+++ b/ui/views/style/platform_style.cc
@@ -52,7 +52,7 @@ gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled,
// static
std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() {
- return base::WrapUnique(new FocusableBorder());
+ return base::MakeUnique<FocusableBorder>();
}
// static
@@ -66,7 +66,7 @@ std::unique_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
Button::ButtonStyle style) {
if (!ui::MaterialDesignController::IsModeMaterial() ||
style != Button::STYLE_TEXTBUTTON) {
- return base::WrapUnique(new LabelButtonAssetBorder(style));
+ return base::MakeUnique<LabelButtonAssetBorder>(style);
}
std::unique_ptr<LabelButtonBorder> border(new views::LabelButtonBorder());
@@ -77,7 +77,7 @@ std::unique_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
// static
std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
- return base::WrapUnique(new NativeScrollBar(is_horizontal));
+ return base::MakeUnique<NativeScrollBar>(is_horizontal);
}
// static
« no previous file with comments | « ui/views/style/mac/dialog_button_border_mac_unittest.cc ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698