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

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

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/autocomplete/history_provider.h" 11 #include "chrome/browser/autocomplete/history_provider.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 #include "components/autocomplete/autocomplete_input.h"
14 #include "components/metrics/proto/omnibox_input_type.pb.h" 13 #include "components/metrics/proto/omnibox_input_type.pb.h"
14 #include "components/omnibox/autocomplete_input.h"
15 #include "components/url_fixer/url_fixer.h" 15 #include "components/url_fixer/url_fixer.h"
16 16
17 namespace { 17 namespace {
18 18
19 #if !defined(OS_ANDROID) 19 #if !defined(OS_ANDROID)
20 // This list should be kept in sync with chrome/common/url_constants.h. 20 // This list should be kept in sync with chrome/common/url_constants.h.
21 // Only include useful sub-pages, confirmation alerts are not useful. 21 // Only include useful sub-pages, confirmation alerts are not useful.
22 const char* const kChromeSettingsSubPages[] = { 22 const char* const kChromeSettingsSubPages[] = {
23 chrome::kAutofillSubPage, 23 chrome::kAutofillSubPage,
24 chrome::kClearBrowserDataSubPage, 24 chrome::kClearBrowserDataSubPage,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const ACMatchClassifications& styles) { 160 const ACMatchClassifications& styles) {
161 AutocompleteMatch match(this, kRelevance, false, 161 AutocompleteMatch match(this, kRelevance, false,
162 AutocompleteMatchType::NAVSUGGEST); 162 AutocompleteMatchType::NAVSUGGEST);
163 match.fill_into_edit = match_string; 163 match.fill_into_edit = match_string;
164 match.inline_autocompletion = inline_completion; 164 match.inline_autocompletion = inline_completion;
165 match.destination_url = GURL(match_string); 165 match.destination_url = GURL(match_string);
166 match.contents = match_string; 166 match.contents = match_string;
167 match.contents_class = styles; 167 match.contents_class = styles;
168 matches_.push_back(match); 168 matches_.push_back(match);
169 } 169 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.h ('k') | chrome/browser/autocomplete/builtin_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698