Index: extensions/browser/quota_service.cc |
diff --git a/extensions/browser/quota_service.cc b/extensions/browser/quota_service.cc |
index 99967d775a20914fc29d46754ffbcb663b21753b..3d53713b9ef9485e3f4857554b2cec9c9ab6f78c 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_THREAD(thread_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_THREAD(thread_checker_); |
if (function->ShouldSkipQuotaLimiting()) |
return std::string(); |
@@ -86,7 +86,7 @@ QuotaService::ScopedDisablePurgeForTesting::~ScopedDisablePurgeForTesting() { |
} |
void QuotaService::Purge() { |
- DCHECK(CalledOnValidThread()); |
+ DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); |
for (auto it = function_heuristics_.begin(); it != function_heuristics_.end(); |
function_heuristics_.erase(it++)) { |
it->second.clear(); |