syncer::SyncerError* error)
: work_(work), done_(done), error_(error) {}
- virtual bool RunOnDBThread(history::HistoryBackend* backend,
- history::HistoryDatabase* db) OVERRIDE {
+ bool RunOnDBThread(history::HistoryBackend* backend,
+ history::HistoryDatabase* db) override {
*error_ = work_.Run();
done_->Signal();
return true;
// Since the DoWorkAndWaitUntilDone() is synchronous, we don't need to run
// any code asynchronously on the main thread after completion.
- virtual void DoneRunOnMainThread() OVERRIDE {}
+ void DoneRunOnMainThread() override {}
protected:
- virtual ~WorkerTask() {}
+ ~WorkerTask() override {}
syncer::WorkCallback work_;
WaitableEvent* done_;
explicit AddDBThreadObserverTask(base::Closure register_callback)
: register_callback_(register_callback) {}
- virtual bool RunOnDBThread(history::HistoryBackend* backend,
- history::HistoryDatabase* db) OVERRIDE {
+ bool RunOnDBThread(history::HistoryBackend* backend,
+ history::HistoryDatabase* db) override {
register_callback_.Run();
return true;
}
- virtual void DoneRunOnMainThread() OVERRIDE {}
+ void DoneRunOnMainThread() override {}
private:
- virtual ~AddDBThreadObserverTask() {}
+ ~AddDBThreadObserverTask() override {}
base::Closure register_callback_;
};