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

Unified Diff: chrome/browser/ui/views/find_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/find_bar_view.cc
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc
index af64e73be8ff6c0609fe703002bfa18443ef42d5..8c9fad33f1ccbb61f0063d7611963b59fb9b474b 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -547,13 +547,13 @@ void FindBarView::InitViewsForNonMaterial() {
void FindBarView::InitViewsForMaterial() {
// The background color is not used since there's no arrow.
- SetBorder(base::WrapUnique(new views::BubbleBorder(
+ SetBorder(base::MakeUnique<views::BubbleBorder>(
views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW,
- SK_ColorGREEN)));
+ SK_ColorGREEN));
match_count_text_ = new MatchCountLabel();
match_count_text_->SetEventTargeter(
- base::WrapUnique(new views::ViewTargeter(this)));
+ base::MakeUnique<views::ViewTargeter>(this));
AddChildViewAt(match_count_text_, 1);
separator_ = new views::Separator(views::Separator::VERTICAL);
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_view.cc ('k') | chrome/browser/ui/views/frame/test_with_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698