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

Unified Diff: chrome/browser/ui/ash/media_delegate_chromeos.cc

Issue 2052603002: Restore calls to MessageLoopForUI::current in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing includes Created 4 years, 6 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/ui/ash/media_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/media_delegate_chromeos.cc b/chrome/browser/ui/ash/media_delegate_chromeos.cc
index 433e7b72264a30a21eb721b382006d97d00f1c04..9e638b65a1313f5837d42ae6b9a119489466e7ab 100644
--- a/chrome/browser/ui/ash/media_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/media_delegate_chromeos.cc
@@ -8,8 +8,8 @@
#include "ash/shell.h"
#include "ash/system/tray/system_tray_notifier.h"
#include "base/location.h"
+#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
-#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/extensions/media_player_api.h"
#include "chrome/browser/chromeos/extensions/media_player_event_router.h"
#include "chrome/browser/media/media_stream_capture_indicator.h"
@@ -156,7 +156,7 @@ void MediaDelegateChromeOS::OnRequestUpdate(
int render_frame_id,
content::MediaStreamType stream_type,
const content::MediaRequestState state) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ base::MessageLoopForUI::current()->task_runner()->PostTask(
FROM_HERE, base::Bind(&MediaDelegateChromeOS::NotifyMediaCaptureChange,
weak_ptr_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698