summaryrefslogtreecommitdiffstats
path: root/components/webdata/common
diff options
context:
space:
mode:
authornick <nick@chromium.org>2015-04-28 10:22:22 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-28 17:22:53 +0000
commit79ff566325268a34a0ce078dbda3ea68d21850de (patch)
treef1d206fd222c18ae5f581a879ea7fbb8c4e51aad /components/webdata/common
parentf9f4834d3690715c918eaaea589f18472e95ebd9 (diff)
downloadchromium_src-79ff566325268a34a0ce078dbda3ea68d21850de.zip
chromium_src-79ff566325268a34a0ce078dbda3ea68d21850de.tar.gz
chromium_src-79ff566325268a34a0ce078dbda3ea68d21850de.tar.bz2
Update {virtual,override} to follow C++11 style in components.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. This patch was manually generated using a regex and a text editor. BUG=417463 Review URL: https://codereview.chromium.org/1056633004 Cr-Commit-Position: refs/heads/master@{#327312}
Diffstat (limited to 'components/webdata/common')
-rw-r--r--components/webdata/common/web_data_results.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/webdata/common/web_data_results.h b/components/webdata/common/web_data_results.h
index 6353db1..d6d07fd 100644
--- a/components/webdata/common/web_data_results.h
+++ b/components/webdata/common/web_data_results.h
@@ -67,7 +67,7 @@ template <class T> class WDResult : public WDTypedResult {
: WDTypedResult(type), value_(v) {
}
- virtual ~WDResult() {
+ ~WDResult() override {
}
// Return a single value result.
@@ -91,11 +91,10 @@ template <class T> class WDDestroyableResult : public WDResult<T> {
callback_(callback) {
}
- virtual ~WDDestroyableResult() {
+ ~WDDestroyableResult() override {
}
-
- virtual void Destroy() override {
+ void Destroy() override {
if (!callback_.is_null()) {
callback_.Run(this);
}