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

Side by Side Diff: components/omnibox/browser/builtin_provider.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
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 "components/omnibox/browser/builtin_provider.h" 5 #include "components/omnibox/browser/builtin_provider.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
11 #include "components/metrics/proto/omnibox_input_type.pb.h" 13 #include "components/metrics/proto/omnibox_input_type.pb.h"
12 #include "components/omnibox/browser/autocomplete_input.h" 14 #include "components/omnibox/browser/autocomplete_input.h"
13 #include "components/omnibox/browser/autocomplete_provider_client.h" 15 #include "components/omnibox/browser/autocomplete_provider_client.h"
14 #include "components/omnibox/browser/history_provider.h" 16 #include "components/omnibox/browser/history_provider.h"
15 #include "components/url_formatter/url_fixer.h" 17 #include "components/url_formatter/url_fixer.h"
16 18
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const ACMatchClassifications& styles) { 129 const ACMatchClassifications& styles) {
128 AutocompleteMatch match(this, kRelevance, false, 130 AutocompleteMatch match(this, kRelevance, false,
129 AutocompleteMatchType::NAVSUGGEST); 131 AutocompleteMatchType::NAVSUGGEST);
130 match.fill_into_edit = match_string; 132 match.fill_into_edit = match_string;
131 match.inline_autocompletion = inline_completion; 133 match.inline_autocompletion = inline_completion;
132 match.destination_url = GURL(match_string); 134 match.destination_url = GURL(match_string);
133 match.contents = match_string; 135 match.contents = match_string;
134 match.contents_class = styles; 136 match.contents_class = styles;
135 matches_.push_back(match); 137 matches_.push_back(match);
136 } 138 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/builtin_provider.h ('k') | components/omnibox/browser/history_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698