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

Unified Diff: ui/app_list/app_list_model.cc

Issue 907833002: Hide experimental app list Google logo and custom launcher page when search engine is not Google. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_app_list_bg_color
Patch Set: address comment, add service dependency Created 5 years, 10 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/app_list_model.h ('k') | ui/app_list/app_list_model_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ui/app_list/app_list_model.h ('k') | ui/app_list/app_list_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698