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

Unified Diff: components/safe_json/safe_json_parser_impl.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (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: components/safe_json/safe_json_parser_impl.cc
diff --git a/components/safe_json/safe_json_parser_impl.cc b/components/safe_json/safe_json_parser_impl.cc
index 8f0ea483ed9a37e35c318e9c453ca69d9e932d0c..f84af9656cff5bb696c5bff5919cd7825de7603b 100644
--- a/components/safe_json/safe_json_parser_impl.cc
+++ b/components/safe_json/safe_json_parser_impl.cc
@@ -77,7 +77,7 @@ void SafeJsonParserImpl::OnParseDone(std::unique_ptr<base::Value> result,
void SafeJsonParserImpl::ReportResults(std::unique_ptr<base::Value> parsed_json,
const std::string& error) {
- DCHECK(caller_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(caller_task_runner_->RunsTasksInCurrentSequence());
if (error.empty() && parsed_json) {
if (!success_callback_.is_null())
success_callback_.Run(std::move(parsed_json));

Powered by Google App Engine
This is Rietveld 408576698