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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: fix compile Created 3 years, 8 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/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index f6e6ec5789882d8e481490891267886b5720e671..a0a1a6576848523171c1407d0a43dc7e7ed3045a 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -946,8 +946,9 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
// nested message loop and commands dispatched during this operation cause
// havoc.
if (SessionRestore::IsRestoring(lastProfile) &&
- base::MessageLoop::current()->IsNested())
+ base::RunLoop::IsNestedOnCurrentThread()) {
return;
+ }
NSInteger tag = [sender tag];

Powered by Google App Engine
This is Rietveld 408576698