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

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

Issue 16746002: Use a direct include of strings headers in chrome/auto*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 "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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.h ('k') | chrome/browser/autocomplete/contact_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698