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

Unified Diff: net/http/transport_security_persister.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/http/http_server_properties_manager_unittest.cc ('k') | net/log/file_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_persister.cc
diff --git a/net/http/transport_security_persister.cc b/net/http/transport_security_persister.cc
index 8938b27daf53dfb9dc34b37cfa38bf22093bedef..44233b6e66b245f431bd54f88549e1f561fa7c80 100644
--- a/net/http/transport_security_persister.cc
+++ b/net/http/transport_security_persister.cc
@@ -306,7 +306,7 @@ TransportSecurityPersister::TransportSecurityPersister(
}
TransportSecurityPersister::~TransportSecurityPersister() {
- DCHECK(foreground_runner_->RunsTasksOnCurrentThread());
+ DCHECK(foreground_runner_->RunsTasksInCurrentSequence());
if (writer_.HasPendingWrite())
writer_.DoScheduledWrite();
@@ -315,7 +315,7 @@ TransportSecurityPersister::~TransportSecurityPersister() {
}
void TransportSecurityPersister::StateIsDirty(TransportSecurityState* state) {
- DCHECK(foreground_runner_->RunsTasksOnCurrentThread());
+ DCHECK(foreground_runner_->RunsTasksInCurrentSequence());
DCHECK_EQ(transport_security_state_, state);
if (!readonly_)
@@ -323,7 +323,7 @@ void TransportSecurityPersister::StateIsDirty(TransportSecurityState* state) {
}
bool TransportSecurityPersister::SerializeData(std::string* output) {
- DCHECK(foreground_runner_->RunsTasksOnCurrentThread());
+ DCHECK(foreground_runner_->RunsTasksInCurrentSequence());
base::DictionaryValue toplevel;
@@ -340,7 +340,7 @@ bool TransportSecurityPersister::SerializeData(std::string* output) {
bool TransportSecurityPersister::LoadEntries(const std::string& serialized,
bool* dirty) {
- DCHECK(foreground_runner_->RunsTasksOnCurrentThread());
+ DCHECK(foreground_runner_->RunsTasksInCurrentSequence());
transport_security_state_->ClearDynamicData();
return Deserialize(serialized, dirty, transport_security_state_);
@@ -491,7 +491,7 @@ bool TransportSecurityPersister::Deserialize(const std::string& serialized,
}
void TransportSecurityPersister::CompleteLoad(const std::string& state) {
- DCHECK(foreground_runner_->RunsTasksOnCurrentThread());
+ DCHECK(foreground_runner_->RunsTasksInCurrentSequence());
if (state.empty())
return;
« no previous file with comments | « net/http/http_server_properties_manager_unittest.cc ('k') | net/log/file_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698