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

Unified Diff: extensions/browser/quota_service.cc

Issue 2915523002: Replace deprecated base::NonThreadSafe in extensions in favor of SequenceChecker. (Closed)
Patch Set: Add TestBrowserThreadBundle Created 3 years, 7 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 | « extensions/browser/quota_service.h ('k') | extensions/browser/value_store/value_store_frontend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « extensions/browser/quota_service.h ('k') | extensions/browser/value_store/value_store_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698