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

Unified Diff: ui/app_list/views/search_box_view.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 | « ui/app_list/views/search_box_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index 2d70b80eca8c6e74651189199f843f1795272b50..72c7e2bdcdaaac73e3facef98c2a1b104388686b 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -304,7 +304,7 @@ void SearchBoxView::OnEnabledChanged() {
void SearchBoxView::UpdateModel() {
// Temporarily remove from observer to ignore notifications caused by us.
model_->search_box()->RemoveObserver(this);
- model_->search_box()->SetText(search_box_->text());
+ model_->search_box()->Update(search_box_->text(), false);
model_->search_box()->SetSelectionModel(search_box_->GetSelectionModel());
model_->search_box()->AddObserver(this);
}
@@ -422,7 +422,7 @@ void SearchBoxView::SelectionModelChanged() {
search_box_->SelectSelectionModel(model_->search_box()->selection_model());
}
-void SearchBoxView::TextChanged() {
+void SearchBoxView::Update() {
search_box_->SetText(model_->search_box()->text());
NotifyQueryChanged();
}
« no previous file with comments | « ui/app_list/views/search_box_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698