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

Unified Diff: chrome/browser/ui/cocoa/app_menu/app_menu_controller.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/app_menu/app_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm b/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
index bc4f35fb06a26f4ae2796b799ab01a972e1f1278..fd03a4bec85c3c94def657e7239fbb048300b2b4 100644
--- a/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
@@ -10,11 +10,11 @@
#include "base/mac/bundle_locations.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram_macros.h"
#include "base/scoped_observer.h"
#include "base/strings/string16.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "chrome/app/chrome_command_ids.h"
#import "chrome/browser/app_controller_mac.h"
#include "chrome/browser/profiles/profile.h"
@@ -142,10 +142,9 @@ class ToolbarActionsBarObserverHelper : public ToolbarActionsBarObserver {
// Edge case: If the resize is caused by an action being added while the
// menu is open, we need to wait for both toolbars to be updated. This can
// happen if a user's data is synced with the menu open.
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&ToolbarActionsBarObserverHelper::UpdateSubmenu,
- weak_ptr_factory_.GetWeakPtr()));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&ToolbarActionsBarObserverHelper::UpdateSubmenu,
+ weak_ptr_factory_.GetWeakPtr()));
}
void UpdateSubmenu() {

Powered by Google App Engine
This is Rietveld 408576698