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

Unified Diff: net/cert/cert_database_mac.cc

Issue 2894863002: Rename TaskRunner::RunsTasksOnCurrentThread() in //net (Closed)
Patch Set: fixed build error 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 | « net/base/directory_lister.cc ('k') | net/cert_net/cert_net_fetcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_database_mac.cc
diff --git a/net/cert/cert_database_mac.cc b/net/cert/cert_database_mac.cc
index 98f8dc9e1a1a51a6250d6e0f3086826266d3248b..bc266c3b8af027cf4f265c92347762008918be32 100644
--- a/net/cert/cert_database_mac.cc
+++ b/net/cert/cert_database_mac.cc
@@ -39,12 +39,12 @@ class CertDatabase::Notifier {
base::Unretained(this)));
}
- // Should be called from the |task_runner_|'s thread. Use Shutdown()
- // to shutdown on arbitrary threads.
+ // Should be called from the |task_runner_|'s sequence. Use Shutdown()
+ // to shutdown on arbitrary sequence.
~Notifier() {
DCHECK(called_shutdown_);
- // Only unregister from the same thread where registration was performed.
- if (registered_ && task_runner_->RunsTasksOnCurrentThread())
+ // Only unregister from the same sequence where registration was performed.
+ if (registered_ && task_runner_->RunsTasksInCurrentSequence())
SecKeychainRemoveCallback(&Notifier::KeychainCallback);
}
« no previous file with comments | « net/base/directory_lister.cc ('k') | net/cert_net/cert_net_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698