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

Unified Diff: chrome/browser/autocomplete/shortcuts_provider.h

Issue 10701043: Make ShortcutsBackend a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autocomplete/shortcuts_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/shortcuts_provider.h
===================================================================
--- chrome/browser/autocomplete/shortcuts_provider.h (revision 145147)
+++ chrome/browser/autocomplete/shortcuts_provider.h (working copy)
@@ -73,19 +73,15 @@
// Returns iterator to first item in |shortcuts_map_| matching |keyword|.
// Returns shortcuts_map_.end() if there are no matches.
history::ShortcutsBackend::ShortcutMap::const_iterator FindFirstMatch(
- const string16& keyword);
+ const string16& keyword,
+ history::ShortcutsBackend* backend);
static int CalculateScore(
const string16& terms,
const history::ShortcutsBackend::Shortcut& shortcut);
- // For unit-test only.
- void set_shortcuts_backend(history::ShortcutsBackend* shortcuts_backend);
-
std::string languages_;
bool initialized_;
-
- scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
« no previous file with comments | « no previous file | chrome/browser/autocomplete/shortcuts_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698