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

Unified Diff: ui/app_list/search_box_view.cc

Issue 10638018: app_list: Initialize more views in the initializer list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « ui/app_list/search_box_model.cc ('k') | ui/app_list/search_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_box_view.cc
diff --git a/ui/app_list/search_box_view.cc b/ui/app_list/search_box_view.cc
index 1c5a6dfb7a04b7e25421ea509c8cd1f0c38cf5e0..ab84d01baa9181aeb844c1a549f2587ed90af0ce 100644
--- a/ui/app_list/search_box_view.cc
+++ b/ui/app_list/search_box_view.cc
@@ -29,17 +29,15 @@ const SkColor kHintTextColor = SkColorSetRGB(0xA0, 0xA0, 0xA0);
SearchBoxView::SearchBoxView(SearchBoxViewDelegate* delegate)
: delegate_(delegate),
model_(NULL),
- icon_view_(NULL),
- search_box_(NULL),
+ icon_view_(new views::ImageView),
+ search_box_(new views::Textfield),
contents_view_(NULL) {
- icon_view_ = new views::ImageView;
AddChildView(icon_view_);
- search_box_ = new views::Textfield;
search_box_->RemoveBorder();
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
search_box_->SetFont(gfx::Font(
- rb.GetFont(ResourceBundle::BaseFont).GetFontName(),
+ rb.GetFont(ui::ResourceBundle::BaseFont).GetFontName(),
kFontSize));
search_box_->set_placeholder_text_color(kHintTextColor);
search_box_->SetController(this);
« no previous file with comments | « ui/app_list/search_box_model.cc ('k') | ui/app_list/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698