OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/ash/app_list/search_builder.h" | 5 #include "chrome/browser/ui/views/ash/app_list/search_builder.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/autocomplete/autocomplete_controller.h" | 10 #include "chrome/browser/autocomplete/autocomplete_controller.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 ++it) { | 269 ++it) { |
270 results_->Add(new SearchBuilderResult(profile_, *it)); | 270 results_->Add(new SearchBuilderResult(profile_, *it)); |
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 void SearchBuilder::OnResultChanged(bool default_match_changed) { | 274 void SearchBuilder::OnResultChanged(bool default_match_changed) { |
275 // TODO(xiyuan): Handle default match properly. | 275 // TODO(xiyuan): Handle default match properly. |
276 const AutocompleteResult& ac_result = controller_->result(); | 276 const AutocompleteResult& ac_result = controller_->result(); |
277 PopulateFromACResult(ac_result); | 277 PopulateFromACResult(ac_result); |
278 } | 278 } |
OLD | NEW |