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

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

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 7 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 16e6a8169a578586a417c9168d544430ffa8f22d..433e7b72264a30a21eb721b382006d97d00f1c04 100644
--- a/chrome/browser/ui/ash/media_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/media_delegate_chromeos.cc
@@ -7,7 +7,9 @@
#include "ash/content/shell_content_state.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray_notifier.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.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"
@@ -154,10 +156,9 @@ void MediaDelegateChromeOS::OnRequestUpdate(
int render_frame_id,
content::MediaStreamType stream_type,
const content::MediaRequestState state) {
- base::MessageLoopForUI::current()->PostTask(
- FROM_HERE,
- base::Bind(&MediaDelegateChromeOS::NotifyMediaCaptureChange,
- weak_ptr_factory_.GetWeakPtr()));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&MediaDelegateChromeOS::NotifyMediaCaptureChange,
+ weak_ptr_factory_.GetWeakPtr()));
}
void MediaDelegateChromeOS::NotifyMediaCaptureChange() {
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698