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

Unified Diff: content/child/web_database_observer_impl.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/child/web_database_observer_impl.cc
diff --git a/content/child/web_database_observer_impl.cc b/content/child/web_database_observer_impl.cc
index d2d1aa1e29d291f4963e7396a729b2f9fd2835fe..b8eefc6e7dae4da423da005b9a2f44324e644a43 100644
--- a/content/child/web_database_observer_impl.cc
+++ b/content/child/web_database_observer_impl.cc
@@ -95,7 +95,7 @@ void WebDatabaseObserverImpl::DatabaseModified(const WebSecurityOrigin& origin,
void WebDatabaseObserverImpl::DatabaseClosed(const WebSecurityOrigin& origin,
const WebString& database_name) {
- DCHECK(!main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(!main_thread_task_runner_->RunsTasksInCurrentSequence());
base::string16 database_name_utf16 = database_name.Utf16();
main_thread_task_runner_->PostTask(
FROM_HERE,
@@ -181,7 +181,7 @@ void WebDatabaseObserverImpl::ReportVacuumDatabaseResult(
bool WebDatabaseObserverImpl::WaitForAllDatabasesToClose(
base::TimeDelta timeout) {
- DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_thread_task_runner_->RunsTasksInCurrentSequence());
return open_connections_->WaitForAllDatabasesToClose(timeout);
}
« no previous file with comments | « content/child/service_worker/service_worker_provider_context.cc ('k') | content/public/test/test_browser_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698