Index: base/observer_list_unittest.cc |
diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc |
index 1bda3dcadae1a8d6193e0458ee7ac5f43bed380a..3df8db0f065b5401cf95dc6d3740c2c3c39d746b 100644 |
--- a/base/observer_list_unittest.cc |
+++ b/base/observer_list_unittest.cc |
@@ -26,7 +26,7 @@ class Foo { |
class Adder : public Foo { |
public: |
explicit Adder(int scaler) : total(0), scaler_(scaler) {} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
total += x * scaler_; |
} |
virtual ~Adder() {} |
@@ -43,7 +43,7 @@ class Disrupter : public Foo { |
doomed_(doomed) { |
} |
virtual ~Disrupter() {} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
list_->RemoveObserver(doomed_); |
} |
@@ -59,7 +59,7 @@ class ThreadSafeDisrupter : public Foo { |
doomed_(doomed) { |
} |
virtual ~ThreadSafeDisrupter() {} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
list_->RemoveObserver(doomed_); |
} |
@@ -77,7 +77,7 @@ class AddInObserve : public Foo { |
adder(1) { |
} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
if (!added) { |
added = true; |
observer_list->AddObserver(&adder); |
@@ -112,7 +112,7 @@ class AddRemoveThread : public PlatformThread::Delegate, |
virtual ~AddRemoveThread() { |
} |
- virtual void ThreadMain() OVERRIDE { |
+ virtual void ThreadMain() override { |
loop_ = new MessageLoop(); // Fire up a message loop. |
loop_->PostTask( |
FROM_HERE, |
@@ -153,7 +153,7 @@ class AddRemoveThread : public PlatformThread::Delegate, |
loop_->PostTask(FROM_HERE, MessageLoop::QuitWhenIdleClosure()); |
} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
count_observes_++; |
// If we're getting called after we removed ourselves from |
@@ -329,7 +329,7 @@ class FooRemover : public Foo { |
foos_.push_back(foo); |
} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
std::vector<Foo*> tmp; |
tmp.swap(foos_); |
for (std::vector<Foo*>::iterator it = tmp.begin(); |
@@ -481,7 +481,7 @@ class AddInClearObserve : public Foo { |
explicit AddInClearObserve(ObserverList<Foo>* list) |
: list_(list), added_(false), adder_(1) {} |
- virtual void Observe(int /* x */) OVERRIDE { |
+ virtual void Observe(int /* x */) override { |
list_->Clear(); |
list_->AddObserver(&adder_); |
added_ = true; |
@@ -526,7 +526,7 @@ class ListDestructor : public Foo { |
explicit ListDestructor(ObserverList<Foo>* list) : list_(list) {} |
virtual ~ListDestructor() {} |
- virtual void Observe(int x) OVERRIDE { |
+ virtual void Observe(int x) override { |
delete list_; |
} |