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

Unified Diff: components/omnibox/search_suggestion_parser.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « components/omnibox/search_provider.h ('k') | components/omnibox/test_scheme_classifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/search_suggestion_parser.h
diff --git a/components/omnibox/search_suggestion_parser.h b/components/omnibox/search_suggestion_parser.h
index f5493f190c24498310a18d04fa9bf2e0759c86f4..c66de348c14c49858a3d1f1d8a5ef97242dd50d0 100644
--- a/components/omnibox/search_suggestion_parser.h
+++ b/components/omnibox/search_suggestion_parser.h
@@ -125,7 +125,7 @@ class SearchSuggestionParser {
bool relevance_from_server,
bool should_prefetch,
const base::string16& input_text);
- virtual ~SuggestResult();
+ ~SuggestResult() override;
const base::string16& suggestion() const { return suggestion_; }
const base::string16& match_contents_prefix() const {
@@ -149,9 +149,8 @@ class SearchSuggestionParser {
const base::string16& input_text);
// Result:
- virtual int CalculateRelevance(
- const AutocompleteInput& input,
- bool keyword_provider_requested) const override;
+ int CalculateRelevance(const AutocompleteInput& input,
+ bool keyword_provider_requested) const override;
private:
// The search terms to be used for this suggestion.
@@ -193,7 +192,7 @@ class SearchSuggestionParser {
bool relevance_from_server,
const base::string16& input_text,
const std::string& languages);
- virtual ~NavigationResult();
+ ~NavigationResult() override;
const GURL& url() const { return url_; }
const base::string16& description() const { return description_; }
@@ -209,9 +208,8 @@ class SearchSuggestionParser {
const std::string& languages);
// Result:
- virtual int CalculateRelevance(
- const AutocompleteInput& input,
- bool keyword_provider_requested) const override;
+ int CalculateRelevance(const AutocompleteInput& input,
+ bool keyword_provider_requested) const override;
private:
// The suggested url for navigation.
« no previous file with comments | « components/omnibox/search_provider.h ('k') | components/omnibox/test_scheme_classifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698