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

Unified Diff: content/browser/indexed_db/indexed_db_quota_client.cc

Issue 2873333004: Rename TaskRunner::RunsTasksOnCurrentThread() in //content (Closed)
Patch Set: 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
Index: content/browser/indexed_db/indexed_db_quota_client.cc
diff --git a/content/browser/indexed_db/indexed_db_quota_client.cc b/content/browser/indexed_db/indexed_db_quota_client.cc
index 894d36127cfa857537e17508487898d33a65cdbd..421586817578d918643633975e15e150849fe830 100644
--- a/content/browser/indexed_db/indexed_db_quota_client.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client.cc
@@ -30,13 +30,13 @@ storage::QuotaStatusCode DeleteOriginDataOnIndexedDBThread(
int64_t GetOriginUsageOnIndexedDBThread(IndexedDBContextImpl* context,
const GURL& origin) {
- DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(context->TaskRunner()->RunsTasksInCurrentSequence());
return context->GetOriginDiskUsage(origin);
}
void GetAllOriginsOnIndexedDBThread(IndexedDBContextImpl* context,
std::set<GURL>* origins_to_return) {
- DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(context->TaskRunner()->RunsTasksInCurrentSequence());
for (const auto& origin : context->GetAllOrigins())
origins_to_return->insert(origin.GetURL());
}
@@ -50,7 +50,7 @@ void DidGetOrigins(const IndexedDBQuotaClient::GetOriginsCallback& callback,
void GetOriginsForHostOnIndexedDBThread(IndexedDBContextImpl* context,
const std::string& host,
std::set<GURL>* origins_to_return) {
- DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(context->TaskRunner()->RunsTasksInCurrentSequence());
for (const auto& origin : context->GetAllOrigins()) {
GURL origin_url(origin.Serialize());
if (host == net::GetHostOrSpecFromURL(origin_url))
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | content/browser/net/quota_policy_cookie_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698