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

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

Issue 22354006: Omnibox: Convert Shortcuts Scoring Field Trial to Omnibox Bundled Field Trial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: chrome/browser/autocomplete/shortcuts_provider.h
diff --git a/chrome/browser/autocomplete/shortcuts_provider.h b/chrome/browser/autocomplete/shortcuts_provider.h
index 11f0b0a6b59601aea9a40947cdc858bd08121c72..89dcc3cb06f5a69d3ed1c8bca0950069554bd6b5 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.h
+++ b/chrome/browser/autocomplete/shortcuts_provider.h
@@ -96,17 +96,11 @@ class ShortcutsProvider
int CalculateScore(
const string16& terms,
- const history::ShortcutsBackend::Shortcut& shortcut);
+ const history::ShortcutsBackend::Shortcut& shortcut,
+ int max_relevance);
std::string languages_;
bool initialized_;
-
- // The maximum relevance that can be assigned in CalculateScore().
- // Note that if the final assigned relevance is at least
- // AutocompleteResult::kLowestDefaultScore, the relevance will be
- // demoted to less than that number because ShortcutsProvider isn't
- // allowed to inline.
- int max_relevance_;
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
« no previous file with comments | « no previous file | chrome/browser/autocomplete/shortcuts_provider.cc » ('j') | chrome/browser/autocomplete/shortcuts_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698