Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: chrome/browser/autocomplete/builtin_provider.cc

Issue 7782026: Switch from chrome://extensions to chrome://settings/extensionSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698