Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/omnibox/omnibox_controller.h" | |
| 6 | |
| 7 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | |
| 8 #include "chrome/browser/autocomplete/autocomplete_controller.h" | |
| 9 #include "chrome/browser/search/search.h" | |
| 10 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | |
| 11 | |
| 12 OmniboxController::OmniboxController( | |
| 13 OmniboxEditModel* omnibox_edit_model, | |
| 14 Profile* profile) | |
|
sreeram
2013/04/23 18:26:51
This can be formatted like so:
OmniboxController:
beaudoin
2013/04/23 23:42:54
Done.
| |
| 15 : omnibox_edit_model_(omnibox_edit_model) { | |
| 16 // Use a restricted subset of the autocomplete providers if we're using the | |
| 17 // Instant Extended API, as it doesn't support them all. | |
| 18 autocomplete_controller_.reset(new AutocompleteController(profile, this, | |
| 19 chrome::IsInstantExtendedAPIEnabled() ? | |
| 20 AutocompleteClassifier::kInstantExtendedOmniboxProviders : | |
| 21 AutocompleteClassifier::kDefaultOmniboxProviders)); | |
| 22 } | |
| 23 | |
| 24 OmniboxController::~OmniboxController() { | |
| 25 } | |
| 26 | |
| 27 void OmniboxController::OnResultChanged(bool default_match_changed) { | |
| 28 omnibox_edit_model_->OnResultChanged(default_match_changed); | |
| 29 } | |
| OLD | NEW |