diff options
author | dcheng <dcheng@chromium.org> | 2014-10-21 05:00:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-21 12:00:44 +0000 |
commit | b03027d238812b84860eaa4608df71442748c44d (patch) | |
tree | 1e1406538a891030ddaeb3daf61640e59d02a052 /net/cookies/cookie_monster_unittest.cc | |
parent | e59c1bb95b7f2f381d6a0c38c6f6f1c9a89c4ed4 (diff) | |
download | chromium_src-b03027d238812b84860eaa4608df71442748c44d.zip chromium_src-b03027d238812b84860eaa4608df71442748c44d.tar.gz chromium_src-b03027d238812b84860eaa4608df71442748c44d.tar.bz2 |
Standardize usage of virtual/override/final in net/
This patch was automatically generated by applying clang fixit hints
generated by the plugin to the source tree.
BUG=417463
TBR=rsleevi@chromium.org
Review URL: https://codereview.chromium.org/667923003
Cr-Commit-Position: refs/heads/master@{#300466}
Diffstat (limited to 'net/cookies/cookie_monster_unittest.cc')
-rw-r--r-- | net/cookies/cookie_monster_unittest.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/net/cookies/cookie_monster_unittest.cc b/net/cookies/cookie_monster_unittest.cc index 34a50bb..5c76e8a 100644 --- a/net/cookies/cookie_monster_unittest.cc +++ b/net/cookies/cookie_monster_unittest.cc @@ -2165,7 +2165,7 @@ class FlushablePersistentStore : public CookieMonster::PersistentCookieStore { public: FlushablePersistentStore() : flush_count_(0) {} - virtual void Load(const LoadedCallback& loaded_callback) override { + void Load(const LoadedCallback& loaded_callback) override { std::vector<CanonicalCookie*> out_cookies; base::MessageLoop::current()->PostTask( FROM_HERE, @@ -2173,18 +2173,17 @@ class FlushablePersistentStore : public CookieMonster::PersistentCookieStore { new net::LoadedCallbackTask(loaded_callback, out_cookies))); } - virtual void LoadCookiesForKey( - const std::string& key, - const LoadedCallback& loaded_callback) override { + void LoadCookiesForKey(const std::string& key, + const LoadedCallback& loaded_callback) override { Load(loaded_callback); } - virtual void AddCookie(const CanonicalCookie&) override {} - virtual void UpdateCookieAccessTime(const CanonicalCookie&) override {} - virtual void DeleteCookie(const CanonicalCookie&) override {} - virtual void SetForceKeepSessionState() override {} + void AddCookie(const CanonicalCookie&) override {} + void UpdateCookieAccessTime(const CanonicalCookie&) override {} + void DeleteCookie(const CanonicalCookie&) override {} + void SetForceKeepSessionState() override {} - virtual void Flush(const base::Closure& callback) override { + void Flush(const base::Closure& callback) override { ++flush_count_; if (!callback.is_null()) callback.Run(); @@ -2195,7 +2194,7 @@ class FlushablePersistentStore : public CookieMonster::PersistentCookieStore { } private: - virtual ~FlushablePersistentStore() {} + ~FlushablePersistentStore() override {} volatile int flush_count_; }; |