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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc

Issue 667943003: Standardize usage of virtual/override/final in content/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: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
index 969f232245162a9c426edcb8461a26e07bbf2ecb..6f7f25d0e8081b7da901b0d23e139e2aef5fcac4 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
@@ -38,21 +38,17 @@ class TestingServiceWorkerDispatcherHost : public ServiceWorkerDispatcherHost {
Init(context_wrapper);
}
- virtual bool Send(IPC::Message* message) override {
- return helper_->Send(message);
- }
+ bool Send(IPC::Message* message) override { return helper_->Send(message); }
IPC::TestSink* ipc_sink() { return helper_->ipc_sink(); }
- virtual void BadMessageReceived() override {
- ++bad_messages_received_count_;
- }
+ void BadMessageReceived() override { ++bad_messages_received_count_; }
int bad_messages_received_count_;
protected:
EmbeddedWorkerTestHelper* helper_;
- virtual ~TestingServiceWorkerDispatcherHost() {}
+ ~TestingServiceWorkerDispatcherHost() override {}
};
class ServiceWorkerDispatcherHostTest : public testing::Test {
@@ -131,9 +127,9 @@ class ServiceWorkerDispatcherHostTest : public testing::Test {
class ServiceWorkerTestContentBrowserClient : public TestContentBrowserClient {
public:
ServiceWorkerTestContentBrowserClient() {}
- virtual bool AllowServiceWorker(const GURL& scope,
- const GURL& first_party,
- content::ResourceContext* context) override {
+ bool AllowServiceWorker(const GURL& scope,
+ const GURL& first_party,
+ content::ResourceContext* context) override {
return false;
}
};

Powered by Google App Engine
This is Rietveld 408576698