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

Unified Diff: storage/browser/quota/quota_manager.cc

Issue 624063003: Replacing the OVERRIDE with override and FINAL with final in storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the error 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 | « storage/browser/quota/quota_manager.h ('k') | storage/browser/quota/usage_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/quota_manager.cc
diff --git a/storage/browser/quota/quota_manager.cc b/storage/browser/quota/quota_manager.cc
index e0f3b14ea2a24484eb3644ee5fc4954dbe08b697..0e3e7e4bb389ecdfc864f5575415d70405848a72 100644
--- a/storage/browser/quota/quota_manager.cc
+++ b/storage/browser/quota/quota_manager.cc
@@ -420,19 +420,19 @@ class UsageAndQuotaCallbackDispatcher
CheckCompleted();
}
- virtual void Run() OVERRIDE {
+ virtual void Run() override {
// We initialize waiting_callbacks to 1 so that we won't run
// the completion callback until here even some of the callbacks
// are dispatched synchronously.
CheckCompleted();
}
- virtual void Aborted() OVERRIDE {
+ virtual void Aborted() override {
callback_.Run(kQuotaErrorAbort, UsageAndQuota());
DeleteSoon();
}
- virtual void Completed() OVERRIDE {
+ virtual void Completed() override {
DCHECK(!has_usage_ || usage_and_quota_.usage >= 0);
DCHECK(!has_global_limited_usage_ ||
usage_and_quota_.global_limited_usage >= 0);
@@ -474,7 +474,7 @@ class QuotaManager::GetUsageInfoTask : public QuotaTask {
}
protected:
- virtual void Run() OVERRIDE {
+ virtual void Run() override {
remaining_trackers_ = 3;
// This will populate cached hosts and usage info.
manager()->GetUsageTracker(kStorageTypeTemporary)->GetGlobalUsage(
@@ -491,12 +491,12 @@ class QuotaManager::GetUsageInfoTask : public QuotaTask {
kStorageTypeSyncable));
}
- virtual void Completed() OVERRIDE {
+ virtual void Completed() override {
callback_.Run(entries_);
DeleteSoon();
}
- virtual void Aborted() OVERRIDE {
+ virtual void Aborted() override {
callback_.Run(UsageInfoEntries());
DeleteSoon();
}
@@ -549,7 +549,7 @@ class QuotaManager::OriginDataDeleter : public QuotaTask {
weak_factory_(this) {}
protected:
- virtual void Run() OVERRIDE {
+ virtual void Run() override {
error_count_ = 0;
remaining_clients_ = manager()->clients_.size();
for (QuotaClientList::iterator iter = manager()->clients_.begin();
@@ -567,7 +567,7 @@ class QuotaManager::OriginDataDeleter : public QuotaTask {
}
}
- virtual void Completed() OVERRIDE {
+ virtual void Completed() override {
if (error_count_ == 0) {
// Only remove the entire origin if we didn't skip any client types.
if (skipped_clients_ == 0)
@@ -579,7 +579,7 @@ class QuotaManager::OriginDataDeleter : public QuotaTask {
DeleteSoon();
}
- virtual void Aborted() OVERRIDE {
+ virtual void Aborted() override {
callback_.Run(kQuotaErrorAbort);
DeleteSoon();
}
@@ -629,7 +629,7 @@ class QuotaManager::HostDataDeleter : public QuotaTask {
weak_factory_(this) {}
protected:
- virtual void Run() OVERRIDE {
+ virtual void Run() override {
error_count_ = 0;
remaining_clients_ = manager()->clients_.size();
for (QuotaClientList::iterator iter = manager()->clients_.begin();
@@ -641,7 +641,7 @@ class QuotaManager::HostDataDeleter : public QuotaTask {
}
}
- virtual void Completed() OVERRIDE {
+ virtual void Completed() override {
if (error_count_ == 0) {
callback_.Run(kQuotaStatusOk);
} else {
@@ -650,7 +650,7 @@ class QuotaManager::HostDataDeleter : public QuotaTask {
DeleteSoon();
}
- virtual void Aborted() OVERRIDE {
+ virtual void Aborted() override {
callback_.Run(kQuotaErrorAbort);
DeleteSoon();
}
« no previous file with comments | « storage/browser/quota/quota_manager.h ('k') | storage/browser/quota/usage_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698