diff options
Diffstat (limited to 'chromium/content/browser/media/media_service.cc')
-rw-r--r-- | chromium/content/browser/media/media_service.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chromium/content/browser/media/media_service.cc b/chromium/content/browser/media/media_service.cc index 2b3ebcaa99d..c0cd3a64764 100644 --- a/chromium/content/browser/media/media_service.cc +++ b/chromium/content/browser/media/media_service.cc @@ -5,7 +5,6 @@ #include "content/public/browser/media_service.h" #include "base/no_destructor.h" -#include "base/task/post_task.h" #include "base/threading/sequence_local_storage_slot.h" #include "base/time/time.h" #include "content/public/browser/browser_task_traits.h" @@ -61,8 +60,8 @@ media::mojom::MediaService& GetMediaService() { remote.reset_on_disconnect(); #if BUILDFLAG(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS) - base::PostTask( - FROM_HERE, {BrowserThread::IO}, + GetIOThreadTaskRunner({})->PostTask( + FROM_HERE, base::BindOnce(&BindReceiverInGpuProcess, std::move(receiver))); #elif BUILDFLAG(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) static base::NoDestructor<std::unique_ptr<media::MediaService>> service; @@ -72,7 +71,6 @@ media::mojom::MediaService& GetMediaService() { std::move(receiver), ServiceProcessHost::Options() .WithDisplayName("Media Service") - .WithSandboxType(service_manager::SANDBOX_TYPE_UTILITY) .Pass()); remote.reset_on_idle_timeout(kIdleTimeout); #endif |