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

Unified Diff: chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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/cocoa/panels/display_settings_provider_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm b/chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm
index f204e7c78d8081d919693d76cf55366951215742..5894801f6e0b159374e3315ba89af8b861594bc1 100644
--- a/chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm
+++ b/chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#import "chrome/browser/app_controller_mac.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/fullscreen.h"
@@ -132,11 +133,10 @@ void DisplaySettingsProviderCocoa::Observe(
void DisplaySettingsProviderCocoa::ActiveWorkSpaceChanged() {
// The active workspace notification might be received earlier than the
// browser window knows that it is not in active space.
- base::MessageLoop::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE,
base::Bind(&DisplaySettingsProviderCocoa::CheckFullScreenMode,
- weak_factory_.GetWeakPtr(),
- PERFORM_FULLSCREEN_CHECK),
+ weak_factory_.GetWeakPtr(), PERFORM_FULLSCREEN_CHECK),
base::TimeDelta::FromMilliseconds(kCheckFullScreenDelayTimeMs));
}

Powered by Google App Engine
This is Rietveld 408576698