summaryrefslogtreecommitdiffstats
path: root/ipc/mojo/ipc_mojo_perftest.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-21 19:29:52 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-22 04:03:51 +0000
commitfe61fca6faca13c54768ee131dc79c8e06421097 (patch)
treed5ec5f4a7321a382c13a6c00461048d33ca2f20d /ipc/mojo/ipc_mojo_perftest.cc
parentffe2c7a61d7f07ee772f7d09d0c04658d350eef1 (diff)
downloadchromium_src-fe61fca6faca13c54768ee131dc79c8e06421097.zip
chromium_src-fe61fca6faca13c54768ee131dc79c8e06421097.tar.gz
chromium_src-fe61fca6faca13c54768ee131dc79c8e06421097.tar.bz2
Standardize usage of virtual/override/final in ipc/
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 R=agl@chromium.org Review URL: https://codereview.chromium.org/666493005 Cr-Commit-Position: refs/heads/master@{#300623}
Diffstat (limited to 'ipc/mojo/ipc_mojo_perftest.cc')
-rw-r--r--ipc/mojo/ipc_mojo_perftest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipc/mojo/ipc_mojo_perftest.cc b/ipc/mojo/ipc_mojo_perftest.cc
index dca405e..29e7839 100644
--- a/ipc/mojo/ipc_mojo_perftest.cc
+++ b/ipc/mojo/ipc_mojo_perftest.cc
@@ -29,7 +29,7 @@ public:
MojoChannelPerfTest();
- virtual scoped_ptr<IPC::ChannelFactory> CreateChannelFactory(
+ scoped_ptr<IPC::ChannelFactory> CreateChannelFactory(
const IPC::ChannelHandle& handle,
base::TaskRunner* runner) override {
host_.reset(new IPC::ChannelMojoHost(task_runner()));
@@ -37,7 +37,7 @@ public:
handle);
}
- virtual bool DidStartClient() override {
+ bool DidStartClient() override {
bool ok = IPCTestBase::DidStartClient();
DCHECK(ok);
host_->OnClientLaunched(client_process());
@@ -73,8 +73,7 @@ class MojoTestClient : public IPC::test::PingPongTestClient {
MojoTestClient();
- virtual scoped_ptr<IPC::Channel> CreateChannel(
- IPC::Listener* listener) override;
+ scoped_ptr<IPC::Channel> CreateChannel(IPC::Listener* listener) override;
};
MojoTestClient::MojoTestClient() {