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 "components/omnibox/browser/builtin_provider.h" | 5 #include "components/omnibox/browser/builtin_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
11 #include "components/metrics/proto/omnibox_input_type.pb.h" | 13 #include "components/metrics/proto/omnibox_input_type.pb.h" |
12 #include "components/omnibox/browser/autocomplete_input.h" | 14 #include "components/omnibox/browser/autocomplete_input.h" |
13 #include "components/omnibox/browser/autocomplete_provider_client.h" | 15 #include "components/omnibox/browser/autocomplete_provider_client.h" |
14 #include "components/omnibox/browser/history_provider.h" | 16 #include "components/omnibox/browser/history_provider.h" |
15 #include "components/url_formatter/url_fixer.h" | 17 #include "components/url_formatter/url_fixer.h" |
16 | 18 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 const ACMatchClassifications& styles) { | 129 const ACMatchClassifications& styles) { |
128 AutocompleteMatch match(this, kRelevance, false, | 130 AutocompleteMatch match(this, kRelevance, false, |
129 AutocompleteMatchType::NAVSUGGEST); | 131 AutocompleteMatchType::NAVSUGGEST); |
130 match.fill_into_edit = match_string; | 132 match.fill_into_edit = match_string; |
131 match.inline_autocompletion = inline_completion; | 133 match.inline_autocompletion = inline_completion; |
132 match.destination_url = GURL(match_string); | 134 match.destination_url = GURL(match_string); |
133 match.contents = match_string; | 135 match.contents = match_string; |
134 match.contents_class = styles; | 136 match.contents_class = styles; |
135 matches_.push_back(match); | 137 matches_.push_back(match); |
136 } | 138 } |
OLD | NEW |