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

Unified Diff: ui/accelerated_widget_mac/display_link_mac.cc

Issue 2054573002: Remove MessageLoop::current()->task_runner() in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « no previous file | ui/base/test/windowed_nsnotification_observer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/display_link_mac.cc
diff --git a/ui/accelerated_widget_mac/display_link_mac.cc b/ui/accelerated_widget_mac/display_link_mac.cc
index 72470f64b1ed0c35045310ceb4097952667392e4..a6bf7f120e9711adb3cc3b95fdbda1b4917693dc 100644
--- a/ui/accelerated_widget_mac/display_link_mac.cc
+++ b/ui/accelerated_widget_mac/display_link_mac.cc
@@ -6,8 +6,10 @@
#include <stdint.h>
+#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
namespace base {
@@ -81,11 +83,10 @@ scoped_refptr<DisplayLinkMac> DisplayLinkMac::GetForDisplay(
DisplayLinkMac::DisplayLinkMac(
CGDirectDisplayID display_id,
base::ScopedTypeRef<CVDisplayLinkRef> display_link)
- : main_thread_task_runner_(
- base::MessageLoop::current()->task_runner()),
- display_id_(display_id),
- display_link_(display_link),
- timebase_and_interval_valid_(false) {
+ : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ display_id_(display_id),
+ display_link_(display_link),
+ timebase_and_interval_valid_(false) {
DCHECK(display_map_.Get().find(display_id) == display_map_.Get().end());
if (display_map_.Get().empty()) {
CGError register_error = CGDisplayRegisterReconfigurationCallback(
« no previous file with comments | « no previous file | ui/base/test/windowed_nsnotification_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698