OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/browser_about_handler.h" | 9 #include "chrome/browser/browser_about_handler.h" |
10 #include "chrome/browser/net/url_fixer_upper.h" | 10 #include "chrome/browser/net/url_fixer_upper.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // This list should be kept in sync with chrome/common/url_constants.h. | 15 // This list should be kept in sync with chrome/common/url_constants.h. |
16 const char* kChromeSettingsSubPages[] = { | 16 const char* kChromeSettingsSubPages[] = { |
17 chrome::kAdvancedOptionsSubPage, | 17 chrome::kAdvancedOptionsSubPage, |
18 chrome::kAutofillSubPage, | 18 chrome::kAutofillSubPage, |
19 chrome::kBrowserOptionsSubPage, | 19 chrome::kBrowserOptionsSubPage, |
20 chrome::kClearBrowserDataSubPage, | 20 chrome::kClearBrowserDataSubPage, |
21 chrome::kContentSettingsSubPage, | 21 chrome::kContentSettingsSubPage, |
22 chrome::kContentSettingsExceptionsSubPage, | 22 chrome::kContentSettingsExceptionsSubPage, |
| 23 chrome::kExtensionsSubPage, |
23 chrome::kImportDataSubPage, | 24 chrome::kImportDataSubPage, |
24 chrome::kInstantConfirmPage, | 25 chrome::kInstantConfirmPage, |
25 chrome::kLanguageOptionsSubPage, | 26 chrome::kLanguageOptionsSubPage, |
26 chrome::kPersonalOptionsSubPage, | 27 chrome::kPersonalOptionsSubPage, |
27 chrome::kPasswordManagerSubPage, | 28 chrome::kPasswordManagerSubPage, |
28 chrome::kSearchEnginesSubPage, | 29 chrome::kSearchEnginesSubPage, |
29 chrome::kSyncSetupSubPage, | 30 chrome::kSyncSetupSubPage, |
30 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
31 chrome::kAboutOptionsSubPage, | 32 chrome::kAboutOptionsSubPage, |
32 chrome::kInternetOptionsSubPage, | 33 chrome::kInternetOptionsSubPage, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void BuiltinProvider::AddMatch(const string16& match_string, | 117 void BuiltinProvider::AddMatch(const string16& match_string, |
117 const ACMatchClassifications& styles) { | 118 const ACMatchClassifications& styles) { |
118 AutocompleteMatch match(this, kRelevance, false, | 119 AutocompleteMatch match(this, kRelevance, false, |
119 AutocompleteMatch::NAVSUGGEST); | 120 AutocompleteMatch::NAVSUGGEST); |
120 match.fill_into_edit = match_string; | 121 match.fill_into_edit = match_string; |
121 match.destination_url = GURL(match_string); | 122 match.destination_url = GURL(match_string); |
122 match.contents = match_string; | 123 match.contents = match_string; |
123 match.contents_class = styles; | 124 match.contents_class = styles; |
124 matches_.push_back(match); | 125 matches_.push_back(match); |
125 } | 126 } |
OLD | NEW |