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

Unified Diff: ui/app_list/app_list_model.cc

Issue 2846733004: Optimization: not sending answer server requests for voice queries. (Closed)
Patch Set: Last nits Created 3 years, 8 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 | « chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc ('k') | ui/app_list/search_box_model.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 db59138d7318d6c398c57533034d21298ab08262..6ee9d525b3ab93d69b43de15f2580cc15306cfa4 100644
--- a/ui/app_list/app_list_model.cc
+++ b/ui/app_list/app_list_model.cc
@@ -356,6 +356,9 @@ void AppListModel::ClearCustomLauncherPageSubpages() {
}
void AppListModel::SetSearchEngineIsGoogle(bool is_google) {
+ if (search_engine_is_google_ == is_google)
+ return;
+
search_engine_is_google_ = is_google;
for (auto& observer : observers_)
observer.OnSearchEngineIsGoogleChanged(is_google);
« no previous file with comments | « chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698