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

Unified Diff: chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc

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/itunes_data_provider_browsertest.cc
diff --git a/chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc b/chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc
index 389dbafa1df59cc377ead64b91bce43d87ec2831..63418e96ea031e74e2e2c27c63f934a1ae5cbbe7 100644
--- a/chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc
+++ b/chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc
@@ -149,7 +149,7 @@ class ITunesDataProviderTest : public InProcessBrowserTest {
virtual void StartTest(bool parse_success) = 0;
void TestDone() {
- DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread());
+ MediaFileSystemBackend::AssertCurrentlyOnMediaSequence();
ImportedMediaGalleryRegistry* imported_registry =
ImportedMediaGalleryRegistry::GetInstance();
imported_registry->itunes_data_provider_.reset();
@@ -159,7 +159,7 @@ class ITunesDataProviderTest : public InProcessBrowserTest {
private:
void StartTestOnMediaTaskRunner() {
- DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread());
+ MediaFileSystemBackend::AssertCurrentlyOnMediaSequence();
ImportedMediaGalleryRegistry* imported_registry =
ImportedMediaGalleryRegistry::GetInstance();
imported_registry->itunes_data_provider_.reset(
@@ -172,7 +172,7 @@ class ITunesDataProviderTest : public InProcessBrowserTest {
}
void OnLibraryChanged() {
- DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread());
+ MediaFileSystemBackend::AssertCurrentlyOnMediaSequence();
if (!library_changed_callback_.is_null()) {
library_changed_callback_.Run();
library_changed_callback_.Reset();

Powered by Google App Engine
This is Rietveld 408576698