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

Unified Diff: ui/views/controls/menu/menu_runner_impl_cocoa.h

Issue 1876013002: Fixed potential crash on destroying MenuRunnerImplCocoa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: ui/views/controls/menu/menu_runner_impl_cocoa.h
diff --git a/ui/views/controls/menu/menu_runner_impl_cocoa.h b/ui/views/controls/menu/menu_runner_impl_cocoa.h
index f1ae21fb88dcafc44d935702a6f4e3945583cb04..a0c9ca6ec3e0fd3c18d8b4b1b613ac470709376a 100644
--- a/ui/views/controls/menu/menu_runner_impl_cocoa.h
+++ b/ui/views/controls/menu/menu_runner_impl_cocoa.h
@@ -41,6 +41,7 @@ class VIEWS_EXPORT MenuRunnerImplCocoa : public MenuRunnerImplInterface {
// Set if |running_| and Release() has been invoked.
bool delete_after_run_;
+ bool in_menu_runloop_;
tapted 2016/04/12 06:22:58 Let's call this running_ -- the comment above even
// The timestamp of the event which closed the menu - or 0.
base::TimeDelta closing_event_time_;

Powered by Google App Engine
This is Rietveld 408576698