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/autocomplete/builtin_provider.h" | 5 #include "chrome/browser/autocomplete/builtin_provider.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/autocomplete/autocomplete_input.h" | 9 #include "chrome/browser/autocomplete/autocomplete_input.h" |
10 #include "chrome/browser/browser_about_handler.h" | 10 #include "chrome/browser/browser_about_handler.h" |
11 #include "chrome/browser/net/url_fixer_upper.h" | 11 #include "chrome/browser/net/url_fixer_upper.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // This list should be kept in sync with chrome/common/url_constants.h. | 16 // This list should be kept in sync with chrome/common/url_constants.h. |
17 // Only include useful sub-pages, confirmation alerts are not useful. | 17 // Only include useful sub-pages, confirmation alerts are not useful. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void BuiltinProvider::AddMatch(const string16& match_string, | 113 void BuiltinProvider::AddMatch(const string16& match_string, |
114 const ACMatchClassifications& styles) { | 114 const ACMatchClassifications& styles) { |
115 AutocompleteMatch match(this, kRelevance, false, | 115 AutocompleteMatch match(this, kRelevance, false, |
116 AutocompleteMatchType::NAVSUGGEST); | 116 AutocompleteMatchType::NAVSUGGEST); |
117 match.fill_into_edit = match_string; | 117 match.fill_into_edit = match_string; |
118 match.destination_url = GURL(match_string); | 118 match.destination_url = GURL(match_string); |
119 match.contents = match_string; | 119 match.contents = match_string; |
120 match.contents_class = styles; | 120 match.contents_class = styles; |
121 matches_.push_back(match); | 121 matches_.push_back(match); |
122 } | 122 } |
OLD | NEW |