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

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

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/history_quick_provider.h" 5 #include "components/omnibox/browser/history_quick_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/i18n/break_iterator.h" 11 #include "base/i18n/break_iterator.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/prefs/pref_service.h"
15 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
17 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
18 #include "components/bookmarks/browser/bookmark_model.h" 17 #include "components/bookmarks/browser/bookmark_model.h"
19 #include "components/history/core/browser/history_database.h" 18 #include "components/history/core/browser/history_database.h"
20 #include "components/history/core/browser/history_service.h" 19 #include "components/history/core/browser/history_service.h"
21 #include "components/metrics/proto/omnibox_input_type.pb.h" 20 #include "components/metrics/proto/omnibox_input_type.pb.h"
22 #include "components/omnibox/browser/autocomplete_match_type.h" 21 #include "components/omnibox/browser/autocomplete_match_type.h"
23 #include "components/omnibox/browser/autocomplete_provider_client.h" 22 #include "components/omnibox/browser/autocomplete_provider_client.h"
24 #include "components/omnibox/browser/autocomplete_result.h" 23 #include "components/omnibox/browser/autocomplete_result.h"
25 #include "components/omnibox/browser/history_url_provider.h" 24 #include "components/omnibox/browser/history_url_provider.h"
26 #include "components/omnibox/browser/in_memory_url_index.h" 25 #include "components/omnibox/browser/in_memory_url_index.h"
27 #include "components/omnibox/browser/in_memory_url_index_types.h" 26 #include "components/omnibox/browser/in_memory_url_index_types.h"
28 #include "components/omnibox/browser/omnibox_field_trial.h" 27 #include "components/omnibox/browser/omnibox_field_trial.h"
29 #include "components/omnibox/browser/url_prefix.h" 28 #include "components/omnibox/browser/url_prefix.h"
29 #include "components/prefs/pref_service.h"
30 #include "components/search_engines/template_url.h" 30 #include "components/search_engines/template_url.h"
31 #include "components/search_engines/template_url_service.h" 31 #include "components/search_engines/template_url_service.h"
32 #include "components/url_formatter/url_formatter.h" 32 #include "components/url_formatter/url_formatter.h"
33 #include "net/base/escape.h" 33 #include "net/base/escape.h"
34 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 34 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
35 #include "url/third_party/mozilla/url_parse.h" 35 #include "url/third_party/mozilla/url_parse.h"
36 #include "url/url_util.h" 36 #include "url/url_util.h"
37 37
38 bool HistoryQuickProvider::disabled_ = false; 38 bool HistoryQuickProvider::disabled_ = false;
39 39
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 match.description = info.title(); 262 match.description = info.title();
263 match.description_class = SpansFromTermMatch( 263 match.description_class = SpansFromTermMatch(
264 history_match.title_matches, match.description.length(), false); 264 history_match.title_matches, match.description.length(), false);
265 265
266 match.RecordAdditionalInfo("typed count", info.typed_count()); 266 match.RecordAdditionalInfo("typed count", info.typed_count());
267 match.RecordAdditionalInfo("visit count", info.visit_count()); 267 match.RecordAdditionalInfo("visit count", info.visit_count());
268 match.RecordAdditionalInfo("last visit", info.last_visit()); 268 match.RecordAdditionalInfo("last visit", info.last_visit());
269 269
270 return match; 270 return match;
271 } 271 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/bookmark_provider.cc ('k') | components/omnibox/browser/history_quick_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698