Rename TaskRunner::RunsTasksOnCurrentThread() in //content
renamed TaskRunner::RunsTasksOnCurrentThread() to
TaskRunner::RunsTasksInCurrentSequence() in //content
BUG=665062
Review-Url: https://codereview.chromium.org/2873333004
Cr-Commit-Position: refs/heads/master@{#471176}
diff --git a/content/browser/plugin_private_storage_helper.cc b/content/browser/plugin_private_storage_helper.cc
index a84f658..c6d19ac 100644
--- a/content/browser/plugin_private_storage_helper.cc
+++ b/content/browser/plugin_private_storage_helper.cc
@@ -281,7 +281,7 @@
void PluginPrivateDataDeletionHelper::CheckOriginsOnFileTaskRunner(
const std::set<GURL>& origins) {
DCHECK(filesystem_context_->default_file_task_runner()
- ->RunsTasksOnCurrentThread());
+ ->RunsTasksInCurrentSequence());
IncrementTaskCount();
base::Callback<void(bool, const GURL&)> decrement_callback =
@@ -338,7 +338,7 @@
void PluginPrivateDataDeletionHelper::IncrementTaskCount() {
DCHECK(filesystem_context_->default_file_task_runner()
- ->RunsTasksOnCurrentThread());
+ ->RunsTasksInCurrentSequence());
++task_count_;
}
@@ -346,7 +346,7 @@
bool delete_data_for_origin,
const GURL& origin) {
DCHECK(filesystem_context_->default_file_task_runner()
- ->RunsTasksOnCurrentThread());
+ ->RunsTasksInCurrentSequence());
// Since the PluginPrivateDataByOriginChecker runs on the IO thread,
// delete all the data for |origin| if needed.
@@ -385,7 +385,7 @@
const base::Time end,
const base::Closure& callback) {
DCHECK(filesystem_context->default_file_task_runner()
- ->RunsTasksOnCurrentThread());
+ ->RunsTasksInCurrentSequence());
DVLOG(3) << "Clearing plugin data for origin: " << storage_origin;
storage::FileSystemBackend* backend =