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

Unified Diff: chrome/app_shim/chrome_main_app_mode_mac.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/app_shim/chrome_main_app_mode_mac.mm
diff --git a/chrome/app_shim/chrome_main_app_mode_mac.mm b/chrome/app_shim/chrome_main_app_mode_mac.mm
index 20b125825da9d4b4203e9a0770d021c26fa0837f..5bc6a5e0ed4cb1e2d7025ad679486f2e480bd994 100644
--- a/chrome/app_shim/chrome_main_app_mode_mac.mm
+++ b/chrome/app_shim/chrome_main_app_mode_mac.mm
@@ -686,20 +686,18 @@ int ChromeAppModeStart_v4(const app_mode::ChromeAppModeInfo* info) {
[ReplyEventHandler pingProcess:psn
andCall:on_ping_chrome_reply];
- main_message_loop.PostDelayedTask(
- FROM_HERE,
- base::Bind(&AppShimController::OnPingChromeTimeout,
- base::Unretained(&controller)),
+ main_message_loop.task_runner()->PostDelayedTask(
+ FROM_HERE, base::Bind(&AppShimController::OnPingChromeTimeout,
+ base::Unretained(&controller)),
base::TimeDelta::FromSeconds(kPingChromeTimeoutSeconds));
} else {
// Chrome already running. Proceed to init. This could still fail if Chrome
// is still starting up or shutting down, but the process will exit quickly,
// which is preferable to waiting for the Apple Event to timeout after one
// minute.
- main_message_loop.PostTask(
+ main_message_loop.task_runner()->PostTask(
FROM_HERE,
- base::Bind(&AppShimController::Init,
- base::Unretained(&controller)));
+ base::Bind(&AppShimController::Init, base::Unretained(&controller)));
}
main_message_loop.Run();
« no previous file with comments | « base/message_loop/message_pump_glib_unittest.cc ('k') | chrome/browser/browsing_data/browsing_data_helper_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698