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

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

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 11 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 a31f7ee3a5789a9cbad82c22989cb012fc7ab13e..3842afd244f255c3cb1cde131d1f522d7d4a922f 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -86,7 +86,7 @@ FindBarView::FindBarView(FindBarHost* host)
find_text_->set_controller(this);
find_text_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_FIND));
// The find bar textfield has a background image instead of a border.
- find_text_->set_border(NULL);
+ find_text_->SetBorder(views::Border::NullBorder());
AddChildView(find_text_);
match_count_text_ = new views::Label();
@@ -149,8 +149,8 @@ FindBarView::FindBarView(FindBarHost* host)
SetBackground(rb.GetImageSkiaNamed(IDR_FIND_DLG_LEFT_BACKGROUND),
rb.GetImageSkiaNamed(IDR_FIND_DLG_RIGHT_BACKGROUND));
- SetBorder(IDR_FIND_DIALOG_LEFT, IDR_FIND_DIALOG_MIDDLE,
- IDR_FIND_DIALOG_RIGHT);
+ SetBorderFromIds(
+ IDR_FIND_DIALOG_LEFT, IDR_FIND_DIALOG_MIDDLE, IDR_FIND_DIALOG_RIGHT);
preferred_height_ = rb.GetImageSkiaNamed(IDR_FIND_DIALOG_MIDDLE)->height();

Powered by Google App Engine
This is Rietveld 408576698