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

Unified Diff: media/filters/default_media_permission.cc

Issue 1116683002: [media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased patch Created 5 years, 8 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
« no previous file with comments | « media/cdm/default_cdm_factory.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/default_media_permission.cc
diff --git a/media/filters/default_media_permission.cc b/media/filters/default_media_permission.cc
index 80d7093f71d2250774819cd1fe80120b0e904329..60623b9a781d6f5aa031cbb7453ba094aec1c35a 100644
--- a/media/filters/default_media_permission.cc
+++ b/media/filters/default_media_permission.cc
@@ -7,7 +7,8 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
namespace media {
@@ -25,7 +26,7 @@ static void FirePermissionStatusCallback(
"real user's consent. This should NOT be used for in a real "
"user-facing product.";
// Return the callback asynchronously.
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(permission_status_cb, allow));
}
« no previous file with comments | « media/cdm/default_cdm_factory.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698