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

Unified Diff: components/omnibox/browser/shortcuts_provider.h

Issue 1877833002: Optimize shortcuts provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added new files Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/omnibox/browser/shortcuts_provider.h
diff --git a/components/omnibox/browser/shortcuts_provider.h b/components/omnibox/browser/shortcuts_provider.h
index 3344fe36d28d6a49bef689798136151e55a417dc..37506546899e064f5af0154dc7ec9d8ebad3315f 100644
--- a/components/omnibox/browser/shortcuts_provider.h
+++ b/components/omnibox/browser/shortcuts_provider.h
@@ -15,6 +15,7 @@
class AutocompleteProviderClient;
class ShortcutsProviderTest;
+struct ShortcutMatch;
// Provider of recently autocompleted links. Provides autocomplete suggestions
// from previously selected suggestions. The more often a user selects a
@@ -52,11 +53,12 @@ class ShortcutsProvider : public AutocompleteProvider,
// contents against |input|, which should be the lower-cased version of
// the user's input. |input| and |fixed_up_input_text| are used to decide
// what can be inlined.
- AutocompleteMatch ShortcutToACMatch(
- const ShortcutsDatabase::Shortcut& shortcut,
- int relevance,
+ AutocompleteMatch ShortcutMatchToACMatch(
+ const ShortcutMatch& shortcut_match,
const AutocompleteInput& input,
- const base::string16& fixed_up_input_text);
+ const base::string16& fixed_up_input_text,
+ const base::string16 term_string,
+ const WordMap& terms_map);
// Returns a map mapping characters to groups of words from |text| that start
// with those characters, ordered lexicographically descending so that longer

Powered by Google App Engine
This is Rietveld 408576698