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

Unified Diff: storage/browser/fileapi/plugin_private_file_system_backend.cc

Issue 2890143004: Rename TaskRunner::RunsTasksOnCurrentThread() in //storage (Closed)
Patch Set: for Requirements 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: storage/browser/fileapi/plugin_private_file_system_backend.cc
diff --git a/storage/browser/fileapi/plugin_private_file_system_backend.cc b/storage/browser/fileapi/plugin_private_file_system_backend.cc
index efb51f74cb326db72f50696a35dc9d028a8d8fac..cebc136569d3d9830cf93b23160ab62bfc1379f6 100644
--- a/storage/browser/fileapi/plugin_private_file_system_backend.cc
+++ b/storage/browser/fileapi/plugin_private_file_system_backend.cc
@@ -37,7 +37,7 @@ class PluginPrivateFileSystemBackend::FileSystemIDToPluginMap {
~FileSystemIDToPluginMap() {}
std::string GetPluginIDForURL(const FileSystemURL& url) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
Map::iterator found = map_.find(url.filesystem_id());
if (url.type() != kFileSystemTypePluginPrivate || found == map_.end()) {
NOTREACHED() << "Unsupported url is given: " << url.DebugString();
@@ -48,14 +48,14 @@ class PluginPrivateFileSystemBackend::FileSystemIDToPluginMap {
void RegisterFileSystem(const std::string& filesystem_id,
const std::string& plugin_id) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
DCHECK(!filesystem_id.empty());
DCHECK(!base::ContainsKey(map_, filesystem_id)) << filesystem_id;
map_[filesystem_id] = plugin_id;
}
void RemoveFileSystem(const std::string& filesystem_id) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
map_.erase(filesystem_id);
}
@@ -113,7 +113,7 @@ PluginPrivateFileSystemBackend::PluginPrivateFileSystemBackend(
}
PluginPrivateFileSystemBackend::~PluginPrivateFileSystemBackend() {
- if (!file_task_runner_->RunsTasksOnCurrentThread()) {
+ if (!file_task_runner_->RunsTasksInCurrentSequence()) {
AsyncFileUtil* file_util = file_util_.release();
if (!file_task_runner_->DeleteSoon(FROM_HERE, file_util))
delete file_util;
@@ -268,7 +268,7 @@ int64_t PluginPrivateFileSystemBackend::GetOriginUsageOnFileTaskRunner(
FileSystemContext* context,
const GURL& origin_url,
FileSystemType type) {
- DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(file_task_runner_->RunsTasksInCurrentSequence());
if (!CanHandleType(type))
return 0;
@@ -285,7 +285,7 @@ void PluginPrivateFileSystemBackend::GetOriginDetailsOnFileTaskRunner(
const GURL& origin_url,
int64_t* total_size,
base::Time* last_modified_time) {
- DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(file_task_runner_->RunsTasksInCurrentSequence());
*total_size = 0;
*last_modified_time = base::Time::UnixEpoch();
« no previous file with comments | « storage/browser/fileapi/file_system_usage_cache.cc ('k') | storage/browser/fileapi/quota/quota_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698