| Index: extensions/browser/quota_service.cc
|
| diff --git a/extensions/browser/quota_service.cc b/extensions/browser/quota_service.cc
|
| index 99967d775a20914fc29d46754ffbcb663b21753b..d17ff2df5adbf22fc9b3299625f1db72d5d42314 100644
|
| --- a/extensions/browser/quota_service.cc
|
| +++ b/extensions/browser/quota_service.cc
|
| @@ -33,7 +33,7 @@ QuotaService::QuotaService() {
|
| }
|
|
|
| QuotaService::~QuotaService() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| purge_timer_.Stop();
|
| Purge();
|
| }
|
| @@ -42,7 +42,7 @@ std::string QuotaService::Assess(const std::string& extension_id,
|
| ExtensionFunction* function,
|
| const base::ListValue* args,
|
| const base::TimeTicks& event_time) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| if (function->ShouldSkipQuotaLimiting())
|
| return std::string();
|
| @@ -86,7 +86,7 @@ QuotaService::ScopedDisablePurgeForTesting::~ScopedDisablePurgeForTesting() {
|
| }
|
|
|
| void QuotaService::Purge() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| for (auto it = function_heuristics_.begin(); it != function_heuristics_.end();
|
| function_heuristics_.erase(it++)) {
|
| it->second.clear();
|
|
|