summaryrefslogtreecommitdiffstats
path: root/extensions/browser/process_manager_factory.h
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-12-28 12:31:56 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-28 20:32:43 +0000
commitafa7602b2e8b0f3640ab681b8132a970bd133933 (patch)
treebe7be10435fffc7bdcf49466769151c56612cc95 /extensions/browser/process_manager_factory.h
parentf13c491db505994d71f7c2c4e11b93f726e9933a (diff)
downloadchromium_src-afa7602b2e8b0f3640ab681b8132a970bd133933.zip
chromium_src-afa7602b2e8b0f3640ab681b8132a970bd133933.tar.gz
chromium_src-afa7602b2e8b0f3640ab681b8132a970bd133933.tar.bz2
Standardize usage of virtual/override/final specifiers in extensions/.
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. Several formatting edits by clang-format were manually reverted, due to mangling of some of the more complicate IPC macros. BUG=417463 Review URL: https://codereview.chromium.org/815503004 Cr-Commit-Position: refs/heads/master@{#309690}
Diffstat (limited to 'extensions/browser/process_manager_factory.h')
-rw-r--r--extensions/browser/process_manager_factory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/browser/process_manager_factory.h b/extensions/browser/process_manager_factory.h
index 0e04500..5773b4f 100644
--- a/extensions/browser/process_manager_factory.h
+++ b/extensions/browser/process_manager_factory.h
@@ -24,12 +24,12 @@ class ProcessManagerFactory : public BrowserContextKeyedServiceFactory {
friend struct DefaultSingletonTraits<ProcessManagerFactory>;
ProcessManagerFactory();
- virtual ~ProcessManagerFactory();
+ ~ProcessManagerFactory() override;
// BrowserContextKeyedServiceFactory
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
- virtual content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
DISALLOW_COPY_AND_ASSIGN(ProcessManagerFactory);