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

Issue 521063: Fixes possible crash in menus on views/gtk. The crash would happen if... (Closed)

Created:
10 years, 11 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Fixes possible crash in menus on views/gtk. The crash would happen if between the time we called into the model when the user selected an item and the time MessageLoop::Quit is processed the menu was destroyed, we would crash. As MessageLoop::Quit isn't immediate, and we really don't want to call out from a nested message loop, we wait until the quit is processed, then notify the model. CROS_BUG=1108 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35746

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -5 lines) Patch
M views/controls/menu/native_menu_gtk.h View 1 chunk +6 lines, -0 lines 0 comments Download
M views/controls/menu/native_menu_gtk.cc View 4 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sky
10 years, 11 months ago (2010-01-07 21:57:16 UTC) #1
jcampan
10 years, 11 months ago (2010-01-07 22:03:12 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698