Index: ui/app_list/app_list_model.cc |
diff --git a/ui/app_list/app_list_model.cc b/ui/app_list/app_list_model.cc |
index 491087ec18c90447625f11ce35a4d7addc46d4e6..0a8e0cd33bfc5b8b006eb65fd62d4dbaf375cb41 100644 |
--- a/ui/app_list/app_list_model.cc |
+++ b/ui/app_list/app_list_model.cc |
@@ -20,7 +20,8 @@ AppListModel::AppListModel() |
status_(STATUS_NORMAL), |
state_(INVALID_STATE), |
folders_enabled_(false), |
- custom_launcher_page_enabled_(true) { |
+ custom_launcher_page_enabled_(true), |
+ search_engine_is_google_(false) { |
top_level_item_list_->AddObserver(this); |
} |
@@ -347,6 +348,12 @@ void AppListModel::ClearCustomLauncherPageSubpages() { |
custom_launcher_page_subpage_depth_ = 0; |
} |
+void AppListModel::SetSearchEngineIsGoogle(bool is_google) { |
+ search_engine_is_google_ = is_google; |
+ FOR_EACH_OBSERVER(AppListModelObserver, observers_, |
+ OnSearchEngineIsGoogleChanged(is_google)); |
+} |
+ |
// Private methods |
void AppListModel::OnListItemMoved(size_t from_index, |