summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service_factory.h
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-21 18:46:08 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-22 04:03:37 +0000
commit2f5be41e6ddc25cab9804910999255b539ecff1e (patch)
treed49f963dabf234044e35ceb6b36f44dee1e8ea5f /apps/app_restore_service_factory.h
parent60f67cb9cce431ac2d56e96448bc1b5090399d52 (diff)
downloadchromium_src-2f5be41e6ddc25cab9804910999255b539ecff1e.zip
chromium_src-2f5be41e6ddc25cab9804910999255b539ecff1e.tar.gz
chromium_src-2f5be41e6ddc25cab9804910999255b539ecff1e.tar.bz2
Standardize usage of virtual/override/final in apps/
The Google C++ style guide states: Explicitly annotate overrides of virtual functions or virtual destructors with an override or (less frequently) final specifier. Older (pre-C++11) code will use the virtual keyword as an inferior alternative annotation. For clarity, use exactly one of override, final, or virtual when declaring an override. To better conform to these guidelines, the following constructs have been rewritten: - if a base class has a virtual destructor, then: virtual ~Foo(); -> ~Foo() override; - virtual void Foo() override; -> void Foo() override; - virtual void Foo() override final; -> void Foo() final; This patch was automatically generated. The clang plugin can generate fixit hints, which are suggested edits when it is 100% sure it knows how to fix a problem. The hints from the clang plugin were applied to the source tree using the tool in https://codereview.chromium.org/598073004. BUG=417463 R=scheib@chromium.org Review URL: https://codereview.chromium.org/666213002 Cr-Commit-Position: refs/heads/master@{#300609}
Diffstat (limited to 'apps/app_restore_service_factory.h')
-rw-r--r--apps/app_restore_service_factory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_restore_service_factory.h b/apps/app_restore_service_factory.h
index 676d4c2..0c5189b 100644
--- a/apps/app_restore_service_factory.h
+++ b/apps/app_restore_service_factory.h
@@ -27,12 +27,12 @@ class AppRestoreServiceFactory : public BrowserContextKeyedServiceFactory {
friend struct DefaultSingletonTraits<AppRestoreServiceFactory>;
AppRestoreServiceFactory();
- virtual ~AppRestoreServiceFactory();
+ ~AppRestoreServiceFactory() override;
// BrowserContextKeyedServiceFactory:
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
- virtual bool ServiceIsCreatedWithBrowserContext() const override;
+ bool ServiceIsCreatedWithBrowserContext() const override;
};
} // namespace apps