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

Unified Diff: ui/app_list/search_box_model.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/pagination_model.cc ('k') | ui/app_list/search_box_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_model.cc
diff --git a/ui/app_list/search_box_model.cc b/ui/app_list/search_box_model.cc
index efff96867694a673150ebe8530e35eb99516ab31..c88508674eef11f36b3b79d980733efcfee1d540 100644
--- a/ui/app_list/search_box_model.cc
+++ b/ui/app_list/search_box_model.cc
@@ -5,7 +5,6 @@
#include "ui/app_list/search_box_model.h"
#include "ui/app_list/search_box_model_observer.h"
-#include "ui/views/controls/textfield/textfield.h"
namespace app_list {
@@ -17,9 +16,7 @@ SearchBoxModel::~SearchBoxModel() {
void SearchBoxModel::SetIcon(const gfx::ImageSkia& icon) {
icon_ = icon;
- FOR_EACH_OBSERVER(SearchBoxModelObserver,
- observers_,
- IconChanged());
+ FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, IconChanged());
}
void SearchBoxModel::SetHintText(const string16& hint_text) {
@@ -27,9 +24,7 @@ void SearchBoxModel::SetHintText(const string16& hint_text) {
return;
hint_text_ = hint_text;
- FOR_EACH_OBSERVER(SearchBoxModelObserver,
- observers_,
- HintTextChanged());
+ FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, HintTextChanged());
}
void SearchBoxModel::SetSelectionModel(const gfx::SelectionModel& sel) {
@@ -47,9 +42,7 @@ void SearchBoxModel::SetText(const string16& text) {
return;
text_ = text;
- FOR_EACH_OBSERVER(SearchBoxModelObserver,
- observers_,
- TextChanged());
+ FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, TextChanged());
}
void SearchBoxModel::AddObserver(SearchBoxModelObserver* observer) {
« no previous file with comments | « ui/app_list/pagination_model.cc ('k') | ui/app_list/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698