| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 input_string.To<base::string16>(), cursor_position, std::string(), GURL(), | 204 input_string.To<base::string16>(), cursor_position, std::string(), GURL(), |
| 205 static_cast<metrics::OmniboxEventProto::PageClassification>( | 205 static_cast<metrics::OmniboxEventProto::PageClassification>( |
| 206 page_classification), | 206 page_classification), |
| 207 prevent_inline_autocomplete, prefer_keyword, true, true, false, | 207 prevent_inline_autocomplete, prefer_keyword, true, true, false, |
| 208 ChromeAutocompleteSchemeClassifier(profile_)); | 208 ChromeAutocompleteSchemeClassifier(profile_)); |
| 209 controller_->Start(input_); | 209 controller_->Start(input_); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void OmniboxPageHandler::ResetController() { | 212 void OmniboxPageHandler::ResetController() { |
| 213 controller_.reset(new AutocompleteController( | 213 controller_.reset(new AutocompleteController( |
| 214 base::WrapUnique(new ChromeAutocompleteProviderClient(profile_)), this, | 214 base::MakeUnique<ChromeAutocompleteProviderClient>(profile_), this, |
| 215 AutocompleteClassifier::kDefaultOmniboxProviders)); | 215 AutocompleteClassifier::kDefaultOmniboxProviders)); |
| 216 } | 216 } |
| OLD | NEW |