summaryrefslogtreecommitdiffstats
path: root/content/browser/child_process_security_policy_unittest.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-27 18:13:42 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-28 01:13:59 +0000
commitfa85b15991d5df67e3adf18a46a1c0fdca163568 (patch)
tree6fd4da7fd211f67f9ccfdc05455b5a0c6537bab5 /content/browser/child_process_security_policy_unittest.cc
parentb5a19d4ffc9184ec221d46a88b4afa5071eb1527 (diff)
downloadchromium_src-fa85b15991d5df67e3adf18a46a1c0fdca163568.zip
chromium_src-fa85b15991d5df67e3adf18a46a1c0fdca163568.tar.gz
chromium_src-fa85b15991d5df67e3adf18a46a1c0fdca163568.tar.bz2
Standardize usage of virtual/override/final specifiers.
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=nasko@chromium.org Review URL: https://codereview.chromium.org/678073006 Cr-Commit-Position: refs/heads/master@{#301534}
Diffstat (limited to 'content/browser/child_process_security_policy_unittest.cc')
-rw-r--r--content/browser/child_process_security_policy_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc
index 99e52e4..678e3d2 100644
--- a/content/browser/child_process_security_policy_unittest.cc
+++ b/content/browser/child_process_security_policy_unittest.cc
@@ -57,7 +57,7 @@ class ChildProcessSecurityPolicyTest : public testing::Test {
ChildProcessSecurityPolicyTest() : old_browser_client_(NULL) {
}
- virtual void SetUp() {
+ void SetUp() override {
old_browser_client_ = SetBrowserClientForTesting(&test_browser_client_);
// Claim to always handle chrome:// URLs because the CPSP's notion of
@@ -71,7 +71,7 @@ class ChildProcessSecurityPolicyTest : public testing::Test {
test_browser_client_.AddScheme(url::kFileScheme);
}
- virtual void TearDown() {
+ void TearDown() override {
test_browser_client_.ClearSchemes();
SetBrowserClientForTesting(old_browser_client_);
}