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

Unified Diff: ash/common/shelf/shelf_button.cc

Issue 2257763002: 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 | « ash/aura/wm_window_aura.cc ('k') | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_button.cc
diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
index 74fccef59ed76b941c0341a4ad52706f84a0da99..6ee6fc4731e64a8cc0360a50e7143df1734550f4 100644
--- a/ash/common/shelf/shelf_button.cc
+++ b/ash/common/shelf/shelf_button.cc
@@ -496,12 +496,12 @@ void ShelfButton::OnGestureEvent(ui::GestureEvent* event) {
}
std::unique_ptr<views::InkDropRipple> ShelfButton::CreateInkDropRipple() const {
- return base::WrapUnique(new views::SquareInkDropRipple(
+ return base::MakeUnique<views::SquareInkDropRipple>(
gfx::Size(kInkDropLargeSize, kInkDropLargeSize),
kInkDropLargeCornerRadius,
gfx::Size(kInkDropSmallSize, kInkDropSmallSize),
kInkDropSmallCornerRadius, GetLocalBounds().CenterPoint(),
- GetInkDropBaseColor(), ink_drop_visible_opacity()));
+ GetInkDropBaseColor(), ink_drop_visible_opacity());
}
bool ShelfButton::ShouldEnterPushedState(const ui::Event& event) {
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698