| Index: sync/tools/sync_listen_notifications.cc
|
| diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
|
| index 50040c09daaf766cf97c339c8a418865ed099698..3fa5a33afc9aabf7331f638d68daa9c988e274bc 100644
|
| --- a/sync/tools/sync_listen_notifications.cc
|
| +++ b/sync/tools/sync_listen_notifications.cc
|
| @@ -52,14 +52,14 @@ const char kAllowInsecureConnectionSwitch[] = "allow-insecure-connection";
|
| class NotificationPrinter : public InvalidationHandler {
|
| public:
|
| NotificationPrinter() {}
|
| - virtual ~NotificationPrinter() {}
|
| + ~NotificationPrinter() override {}
|
|
|
| - virtual void OnInvalidatorStateChange(InvalidatorState state) override {
|
| + void OnInvalidatorStateChange(InvalidatorState state) override {
|
| LOG(INFO) << "Invalidator state changed to "
|
| << InvalidatorStateToString(state);
|
| }
|
|
|
| - virtual void OnIncomingInvalidation(
|
| + void OnIncomingInvalidation(
|
| const ObjectIdInvalidationMap& invalidation_map) override {
|
| ObjectIdSet ids = invalidation_map.GetObjectIds();
|
| for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) {
|
| @@ -68,9 +68,7 @@ class NotificationPrinter : public InvalidationHandler {
|
| }
|
| }
|
|
|
| - virtual std::string GetOwnerName() const override {
|
| - return "NotificationPrinter";
|
| - }
|
| + std::string GetOwnerName() const override { return "NotificationPrinter"; }
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(NotificationPrinter);
|
| @@ -87,7 +85,7 @@ class MyTestURLRequestContext : public net::TestURLRequestContext {
|
| Init();
|
| }
|
|
|
| - virtual ~MyTestURLRequestContext() {}
|
| + ~MyTestURLRequestContext() override {}
|
| };
|
|
|
| class MyTestURLRequestContextGetter : public net::TestURLRequestContextGetter {
|
| @@ -96,7 +94,7 @@ class MyTestURLRequestContextGetter : public net::TestURLRequestContextGetter {
|
| const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner)
|
| : TestURLRequestContextGetter(io_task_runner) {}
|
|
|
| - virtual net::TestURLRequestContext* GetURLRequestContext() override {
|
| + net::TestURLRequestContext* GetURLRequestContext() override {
|
| // Construct |context_| lazily so it gets constructed on the right
|
| // thread (the IO thread).
|
| if (!context_)
|
| @@ -105,7 +103,7 @@ class MyTestURLRequestContextGetter : public net::TestURLRequestContextGetter {
|
| }
|
|
|
| private:
|
| - virtual ~MyTestURLRequestContextGetter() {}
|
| + ~MyTestURLRequestContextGetter() override {}
|
|
|
| scoped_ptr<MyTestURLRequestContext> context_;
|
| };
|
|
|