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

Unified Diff: chrome/browser/content_settings/content_settings_mock_provider.h

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/content_settings/content_settings_mock_provider.h
diff --git a/chrome/browser/content_settings/content_settings_mock_provider.h b/chrome/browser/content_settings/content_settings_mock_provider.h
index 59303ce13b7d6f79844a51d26ec9ea328391d9f7..6524407a07ca6b60e376c97e49da8f178e77f211 100644
--- a/chrome/browser/content_settings/content_settings_mock_provider.h
+++ b/chrome/browser/content_settings/content_settings_mock_provider.h
@@ -20,26 +20,24 @@ class MockProvider : public ObservableProvider {
public:
MockProvider();
explicit MockProvider(bool read_only);
- virtual ~MockProvider();
+ ~MockProvider() override;
- virtual RuleIterator* GetRuleIterator(
- ContentSettingsType content_type,
- const ResourceIdentifier& resource_identifier,
- bool incognito) const override;
+ RuleIterator* GetRuleIterator(ContentSettingsType content_type,
+ const ResourceIdentifier& resource_identifier,
+ bool incognito) const override;
// The MockProvider is only able to store one content setting. So every time
// this method is called the previously set content settings is overwritten.
- virtual bool SetWebsiteSetting(
- const ContentSettingsPattern& requesting_url_pattern,
- const ContentSettingsPattern& embedding_url_pattern,
- ContentSettingsType content_type,
- const ResourceIdentifier& resource_identifier,
- base::Value* value) override;
+ bool SetWebsiteSetting(const ContentSettingsPattern& requesting_url_pattern,
+ const ContentSettingsPattern& embedding_url_pattern,
+ ContentSettingsType content_type,
+ const ResourceIdentifier& resource_identifier,
+ base::Value* value) override;
- virtual void ClearAllContentSettingsRules(
- ContentSettingsType content_type) override {}
+ void ClearAllContentSettingsRules(ContentSettingsType content_type) override {
+ }
- virtual void ShutdownOnUIThread() override;
+ void ShutdownOnUIThread() override;
void set_read_only(bool read_only) {
read_only_ = read_only;

Powered by Google App Engine
This is Rietveld 408576698