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

Unified Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (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
Index: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
index 7b54dd7dbdfaf9ad7bed9d413e548dde1dafbabc..ea63572eef9dcd6f15149c37223b14fcfcde2022 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
@@ -118,10 +118,10 @@ class SyncErrorFactoryStub : public syncer::SyncErrorFactory {
public:
explicit SyncErrorFactoryStub(int* error_counter)
: error_counter_(error_counter) {}
- virtual ~SyncErrorFactoryStub() {}
+ ~SyncErrorFactoryStub() override {}
// Overridden from syncer::SyncErrorFactory:
- virtual syncer::SyncError CreateAndUploadError(
+ syncer::SyncError CreateAndUploadError(
const tracked_objects::Location& location,
const std::string& message) override {
(*error_counter_)++;
@@ -146,9 +146,11 @@ class DictionaryObserverCounter : public SpellcheckCustomDictionary::Observer {
int changes() const { return changes_; }
// Overridden from SpellcheckCustomDictionary::Observer:
- virtual void OnCustomDictionaryLoaded() override { loads_++; }
- virtual void OnCustomDictionaryChanged(
- const SpellcheckCustomDictionary::Change& change) override { changes_++; }
+ void OnCustomDictionaryLoaded() override { loads_++; }
+ void OnCustomDictionaryChanged(
+ const SpellcheckCustomDictionary::Change& change) override {
+ changes_++;
+ }
private:
int loads_;
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_custom_dictionary.h ('k') | chrome/browser/spellchecker/spellcheck_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698