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

Unified Diff: chrome/browser/media_galleries/fileapi/media_file_system_backend.h

Issue 2318133002: Remove call to IsRunningSequenceOnCurrentThread() in media_file_system_backend.cc (Closed)
Patch Set: Leaky LazyInstance Created 4 years, 3 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: chrome/browser/media_galleries/fileapi/media_file_system_backend.h
diff --git a/chrome/browser/media_galleries/fileapi/media_file_system_backend.h b/chrome/browser/media_galleries/fileapi/media_file_system_backend.h
index abbc33d6d9a897560c93c331486375fc99cdb8cc..6db0a68e053a660c6bf62b7270e0a0d7ca79cafe 100644
--- a/chrome/browser/media_galleries/fileapi/media_file_system_backend.h
+++ b/chrome/browser/media_galleries/fileapi/media_file_system_backend.h
@@ -43,7 +43,10 @@ class MediaFileSystemBackend : public storage::FileSystemBackend {
base::SequencedTaskRunner* media_task_runner);
~MediaFileSystemBackend() override;
- static bool CurrentlyOnMediaTaskRunnerThread();
+ // Asserts that the current task is sequenced with any other task that calls
+ // this.
+ static void AssertCurrentlyOnMediaSequence();
+
static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner();
// Construct the mount point for the gallery specified by |pref_id| in

Powered by Google App Engine
This is Rietveld 408576698