| 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/webui/omnibox/omnibox_page_handler.h" | 5 #include "chrome/browser/ui/webui/omnibox/omnibox_page_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 static_cast<metrics::OmniboxEventProto::PageClassification>( | 203 static_cast<metrics::OmniboxEventProto::PageClassification>( |
| 204 page_classification), | 204 page_classification), |
| 205 prevent_inline_autocomplete, prefer_keyword, true, true, false, | 205 prevent_inline_autocomplete, prefer_keyword, true, true, false, |
| 206 ChromeAutocompleteSchemeClassifier(profile_)); | 206 ChromeAutocompleteSchemeClassifier(profile_)); |
| 207 controller_->Start(input_); | 207 controller_->Start(input_); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void OmniboxPageHandler::ResetController() { | 210 void OmniboxPageHandler::ResetController() { |
| 211 controller_.reset(new AutocompleteController( | 211 controller_.reset(new AutocompleteController( |
| 212 base::MakeUnique<ChromeAutocompleteProviderClient>(profile_), this, | 212 base::MakeUnique<ChromeAutocompleteProviderClient>(profile_), this, |
| 213 AutocompleteClassifier::kDefaultOmniboxProviders)); | 213 AutocompleteClassifier::DefaultOmniboxProviders())); |
| 214 } | 214 } |
| OLD | NEW |