diff options
author | mostynb <mostynb@opera.com> | 2014-10-07 10:59:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 17:59:25 +0000 |
commit | 9e096de10e6fdcafde67df469ed9a6b8b156dfb1 (patch) | |
tree | 301e744a7e3e865e32a6fd0a779c115e926b7fd6 /base/synchronization | |
parent | 35d1d3a0d525595304fc8333373ddb660bd649cc (diff) | |
download | chromium_src-9e096de10e6fdcafde67df469ed9a6b8b156dfb1.zip chromium_src-9e096de10e6fdcafde67df469ed9a6b8b156dfb1.tar.gz chromium_src-9e096de10e6fdcafde67df469ed9a6b8b156dfb1.tar.bz2 |
replace OVERRIDE and FINAL with override and final in base/
BUG=417463
Review URL: https://codereview.chromium.org/611153004
Cr-Commit-Position: refs/heads/master@{#298520}
Diffstat (limited to 'base/synchronization')
-rw-r--r-- | base/synchronization/condition_variable_unittest.cc | 2 | ||||
-rw-r--r-- | base/synchronization/condition_variable_win.cc | 16 | ||||
-rw-r--r-- | base/synchronization/lock_unittest.cc | 6 | ||||
-rw-r--r-- | base/synchronization/waitable_event_posix.cc | 4 | ||||
-rw-r--r-- | base/synchronization/waitable_event_unittest.cc | 2 | ||||
-rw-r--r-- | base/synchronization/waitable_event_watcher.h | 4 | ||||
-rw-r--r-- | base/synchronization/waitable_event_watcher_posix.cc | 4 |
7 files changed, 19 insertions, 19 deletions
diff --git a/base/synchronization/condition_variable_unittest.cc b/base/synchronization/condition_variable_unittest.cc index 5f947a9..4232734 100644 --- a/base/synchronization/condition_variable_unittest.cc +++ b/base/synchronization/condition_variable_unittest.cc @@ -67,7 +67,7 @@ class WorkQueue : public PlatformThread::Delegate { virtual ~WorkQueue(); // PlatformThread::Delegate interface. - virtual void ThreadMain() OVERRIDE; + virtual void ThreadMain() override; //---------------------------------------------------------------------------- // Worker threads only call the following methods. diff --git a/base/synchronization/condition_variable_win.cc b/base/synchronization/condition_variable_win.cc index 377fc9d..6dc4831 100644 --- a/base/synchronization/condition_variable_win.cc +++ b/base/synchronization/condition_variable_win.cc @@ -74,10 +74,10 @@ class WinVistaCondVar: public ConditionVarImpl { WinVistaCondVar(Lock* user_lock); ~WinVistaCondVar() {}; // Overridden from ConditionVarImpl. - virtual void Wait() OVERRIDE; - virtual void TimedWait(const TimeDelta& max_time) OVERRIDE; - virtual void Broadcast() OVERRIDE; - virtual void Signal() OVERRIDE; + virtual void Wait() override; + virtual void TimedWait(const TimeDelta& max_time) override; + virtual void Broadcast() override; + virtual void Signal() override; private: base::Lock& user_lock_; @@ -129,10 +129,10 @@ class WinXPCondVar : public ConditionVarImpl { WinXPCondVar(Lock* user_lock); ~WinXPCondVar(); // Overridden from ConditionVarImpl. - virtual void Wait() OVERRIDE; - virtual void TimedWait(const TimeDelta& max_time) OVERRIDE; - virtual void Broadcast() OVERRIDE; - virtual void Signal() OVERRIDE; + virtual void Wait() override; + virtual void TimedWait(const TimeDelta& max_time) override; + virtual void Broadcast() override; + virtual void Signal() override; // Define Event class that is used to form circularly linked lists. // The list container is an element with NULL as its handle_ value. diff --git a/base/synchronization/lock_unittest.cc b/base/synchronization/lock_unittest.cc index 16144755..60f4250 100644 --- a/base/synchronization/lock_unittest.cc +++ b/base/synchronization/lock_unittest.cc @@ -18,7 +18,7 @@ class BasicLockTestThread : public PlatformThread::Delegate { public: explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} - virtual void ThreadMain() OVERRIDE { + virtual void ThreadMain() override { for (int i = 0; i < 10; i++) { lock_->Acquire(); acquired_++; @@ -93,7 +93,7 @@ class TryLockTestThread : public PlatformThread::Delegate { public: explicit TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} - virtual void ThreadMain() OVERRIDE { + virtual void ThreadMain() override { got_lock_ = lock_->Try(); if (got_lock_) lock_->Release(); @@ -162,7 +162,7 @@ class MutexLockTestThread : public PlatformThread::Delegate { } } - virtual void ThreadMain() OVERRIDE { + virtual void ThreadMain() override { DoStuff(lock_, value_); } diff --git a/base/synchronization/waitable_event_posix.cc b/base/synchronization/waitable_event_posix.cc index 89f42ff..f34b2a4 100644 --- a/base/synchronization/waitable_event_posix.cc +++ b/base/synchronization/waitable_event_posix.cc @@ -91,7 +91,7 @@ class SyncWaiter : public WaitableEvent::Waiter { cv_(&lock_) { } - virtual bool Fire(WaitableEvent* signaling_event) OVERRIDE { + virtual bool Fire(WaitableEvent* signaling_event) override { base::AutoLock locked(lock_); if (fired_) @@ -117,7 +117,7 @@ class SyncWaiter : public WaitableEvent::Waiter { // These waiters are always stack allocated and don't delete themselves. Thus // there's no problem and the ABA tag is the same as the object pointer. // --------------------------------------------------------------------------- - virtual bool Compare(void* tag) OVERRIDE { + virtual bool Compare(void* tag) override { return this == tag; } diff --git a/base/synchronization/waitable_event_unittest.cc b/base/synchronization/waitable_event_unittest.cc index 0b50d81..a8913fd 100644 --- a/base/synchronization/waitable_event_unittest.cc +++ b/base/synchronization/waitable_event_unittest.cc @@ -78,7 +78,7 @@ class WaitableEventSignaler : public PlatformThread::Delegate { ev_(ev) { } - virtual void ThreadMain() OVERRIDE { + virtual void ThreadMain() override { PlatformThread::Sleep(TimeDelta::FromSecondsD(seconds_)); ev_->Signal(); } diff --git a/base/synchronization/waitable_event_watcher.h b/base/synchronization/waitable_event_watcher.h index ede2835..4d2f9b5 100644 --- a/base/synchronization/waitable_event_watcher.h +++ b/base/synchronization/waitable_event_watcher.h @@ -92,11 +92,11 @@ class BASE_EXPORT WaitableEventWatcher private: #if defined(OS_WIN) - virtual void OnObjectSignaled(HANDLE h) OVERRIDE; + virtual void OnObjectSignaled(HANDLE h) override; win::ObjectWatcher watcher_; #else // Implementation of MessageLoop::DestructionObserver - virtual void WillDestroyCurrentMessageLoop() OVERRIDE; + virtual void WillDestroyCurrentMessageLoop() override; MessageLoop* message_loop_; scoped_refptr<Flag> cancel_flag_; diff --git a/base/synchronization/waitable_event_watcher_posix.cc b/base/synchronization/waitable_event_watcher_posix.cc index 54e01f8..e791871 100644 --- a/base/synchronization/waitable_event_watcher_posix.cc +++ b/base/synchronization/waitable_event_watcher_posix.cc @@ -65,7 +65,7 @@ class AsyncWaiter : public WaitableEvent::Waiter { callback_(callback), flag_(flag) { } - virtual bool Fire(WaitableEvent* event) OVERRIDE { + virtual bool Fire(WaitableEvent* event) override { // Post the callback if we haven't been cancelled. if (!flag_->value()) { message_loop_->PostTask(FROM_HERE, callback_); @@ -81,7 +81,7 @@ class AsyncWaiter : public WaitableEvent::Waiter { } // See StopWatching for discussion - virtual bool Compare(void* tag) OVERRIDE { + virtual bool Compare(void* tag) override { return tag == flag_.get(); } |