Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: base/observer_list_unittest.cc

Issue 611153004: replace OVERRIDE and FINAL with override and final in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CC_ -> BASE_ Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/stats_table_unittest.cc ('k') | base/posix/file_descriptor_shuffle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « base/metrics/stats_table_unittest.cc ('k') | base/posix/file_descriptor_shuffle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698