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

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « chrome/browser/ui/views/find_bar_view.h ('k') | chrome/browser/ui/views/first_run_bubble.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0420d9abb2e61873fd09997d3de7509b6c64d7e3..3f6031b7b1d52b24aa496f49431b0dec8d16510c 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -540,13 +541,13 @@ void FindBarView::InitViewsForNonMaterial() {
void FindBarView::InitViewsForMaterial() {
// The background color is not used since there's no arrow.
- SetBorder(make_scoped_ptr(new views::BubbleBorder(
+ SetBorder(base::WrapUnique(new views::BubbleBorder(
views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW,
SK_ColorGREEN)));
match_count_text_ = new MatchCountLabel();
match_count_text_->SetEventTargeter(
- make_scoped_ptr(new views::ViewTargeter(this)));
+ base::WrapUnique(new views::ViewTargeter(this)));
AddChildViewAt(match_count_text_, 1);
separator_ = new views::Separator(views::Separator::VERTICAL);
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.h ('k') | chrome/browser/ui/views/first_run_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698