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

Unified Diff: components/policy/core/common/policy_loader_ios.mm

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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 | « components/policy/core/common/cloud/resource_cache.cc ('k') | components/safe_browsing_db/v4_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/policy_loader_ios.mm
diff --git a/components/policy/core/common/policy_loader_ios.mm b/components/policy/core/common/policy_loader_ios.mm
index 8b0a48089166c747bc56e67a6d81f50df2a640e9..c1c4ccae02634b5b7618786a71f192aa01afe90c 100644
--- a/components/policy/core/common/policy_loader_ios.mm
+++ b/components/policy/core/common/policy_loader_ios.mm
@@ -97,11 +97,11 @@ PolicyLoaderIOS::PolicyLoaderIOS(
weak_factory_(this) {}
PolicyLoaderIOS::~PolicyLoaderIOS() {
- DCHECK(task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(task_runner()->RunsTasksInCurrentSequence());
}
void PolicyLoaderIOS::InitOnBackgroundThread() {
- DCHECK(task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(task_runner()->RunsTasksInCurrentSequence());
base::Closure callback = base::Bind(&PolicyLoaderIOS::UserDefaultsChanged,
weak_factory_.GetWeakPtr());
notification_observer_.reset(
« no previous file with comments | « components/policy/core/common/cloud/resource_cache.cc ('k') | components/safe_browsing_db/v4_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698