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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 2251263003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 520c8bf7caf068c7d79b363429a4e8f828a17b7e..c5986006bc35c1587785fbd08d8ca2f1d8965695 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -242,9 +242,9 @@ class BookmarkButtonBase : public views::LabelButton {
}
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
- return base::WrapUnique(new views::FloodFillInkDropRipple(
+ return base::MakeUnique<views::FloodFillInkDropRipple>(
CalculateInkDropBounds(size()), GetInkDropCenterBasedOnLastEvent(),
- GetInkDropBaseColor(), ink_drop_visible_opacity()));
+ GetInkDropBaseColor(), ink_drop_visible_opacity());
}
std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
@@ -253,9 +253,9 @@ class BookmarkButtonBase : public views::LabelButton {
return nullptr;
const gfx::Rect bounds = CalculateInkDropBounds(size());
- return base::WrapUnique(new views::InkDropHighlight(
+ return base::MakeUnique<views::InkDropHighlight>(
bounds.size(), 0, gfx::RectF(bounds).CenterPoint(),
- GetInkDropBaseColor()));
+ GetInkDropBaseColor());
}
SkColor GetInkDropBaseColor() const override {
@@ -343,9 +343,9 @@ class BookmarkMenuButtonBase : public views::MenuButton {
}
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
- return base::WrapUnique(new views::FloodFillInkDropRipple(
+ return base::MakeUnique<views::FloodFillInkDropRipple>(
CalculateInkDropBounds(size()), GetInkDropCenterBasedOnLastEvent(),
- GetInkDropBaseColor(), ink_drop_visible_opacity()));
+ GetInkDropBaseColor(), ink_drop_visible_opacity());
}
std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
@@ -354,9 +354,9 @@ class BookmarkMenuButtonBase : public views::MenuButton {
return nullptr;
const gfx::Rect bounds = CalculateInkDropBounds(size());
- return base::WrapUnique(new views::InkDropHighlight(
+ return base::MakeUnique<views::InkDropHighlight>(
bounds.size(), 0, gfx::RectF(bounds).CenterPoint(),
- GetInkDropBaseColor()));
+ GetInkDropBaseColor());
}
SkColor GetInkDropBaseColor() const override {

Powered by Google App Engine
This is Rietveld 408576698