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

Unified Diff: chrome/browser/ui/cocoa/keystone_infobar_delegate.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/keystone_infobar_delegate.mm
diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
index 2f470f2cb84ccecee34ad8b1801f2d71397d0631..b58976f62ba97bc7eb14de30e9cb69e18da2f393 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
@@ -12,7 +12,7 @@
#include "base/command_line.h"
#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"
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/infobars/infobar_service.h"
#import "chrome/browser/mac/keystone_glue.h"
@@ -98,9 +98,9 @@ KeystonePromotionInfoBarDelegate::KeystonePromotionInfoBarDelegate(
weak_ptr_factory_(this) {
const base::TimeDelta kCanExpireOnNavigationAfterDelay =
base::TimeDelta::FromSeconds(8);
- base::MessageLoop::current()->PostDelayedTask(FROM_HERE,
- base::Bind(&KeystonePromotionInfoBarDelegate::SetCanExpire,
- weak_ptr_factory_.GetWeakPtr()),
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, base::Bind(&KeystonePromotionInfoBarDelegate::SetCanExpire,
+ weak_ptr_factory_.GetWeakPtr()),
kCanExpireOnNavigationAfterDelay);
}

Powered by Google App Engine
This is Rietveld 408576698