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

Unified Diff: content/browser/plugin_private_storage_helper.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/browser/plugin_private_storage_helper.cc
diff --git a/content/browser/plugin_private_storage_helper.cc b/content/browser/plugin_private_storage_helper.cc
index a84f6580daa4dc56a1bca862d8742ee1afe93e8c..c6d19acf1ef7e7882bcac574d075e607aea56b25 100644
--- a/content/browser/plugin_private_storage_helper.cc
+++ b/content/browser/plugin_private_storage_helper.cc
@@ -281,7 +281,7 @@ class PluginPrivateDataDeletionHelper {
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::CheckOriginsOnFileTaskRunner(
void PluginPrivateDataDeletionHelper::IncrementTaskCount() {
DCHECK(filesystem_context_->default_file_task_runner()
- ->RunsTasksOnCurrentThread());
+ ->RunsTasksInCurrentSequence());
++task_count_;
}
@@ -346,7 +346,7 @@ void PluginPrivateDataDeletionHelper::DecrementTaskCount(
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 @@ void ClearPluginPrivateDataOnFileTaskRunner(
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 =

Powered by Google App Engine
This is Rietveld 408576698