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

Issue 10808102: Add EventFilter for LauncherTooltip (2nd try). (Closed)

Created:
8 years, 5 months ago by Jun Mukai
Modified:
8 years, 5 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Add EventFilter for LauncherTooltip (2nd try). Now it monitors mouse/touch/gesture events and hides the tooltip if necessary. Previous CL (crrev.com/148079) was reverted since it causes use-after-free error. It happens when the 'LauncherTooltipBubble' widget exists but LauncherTooltipManager is already released. In that case, the widget's release will cause WindowClosing() which calls host_->OnBubbleClosed(), but host_ is already released. Thus I'd make sure to introduce a method to set host_ to NULL in case that LauncherTooltipManager explicitly clean-up the Bubble. R=derat@chromium.org BUG=137678 TEST=manually checked on linux, aura_shell_unittests passed with asan Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148308

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -41 lines) Patch
M ash/launcher/launcher_tooltip_manager.h View 1 4 chunks +20 lines, -2 lines 0 comments Download
M ash/launcher/launcher_tooltip_manager.cc View 1 9 chunks +98 lines, -20 lines 0 comments Download
M ash/launcher/launcher_tooltip_manager_unittest.cc View 4 chunks +85 lines, -2 lines 0 comments Download
M ash/launcher/launcher_view.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/launcher/launcher_view.cc View 2 chunks +2 lines, -15 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jun Mukai
8 years, 5 months ago (2012-07-24 15:03:51 UTC) #1
Daniel Erat
lgtm http://codereview.chromium.org/10808102/diff/1/ash/launcher/launcher_tooltip_manager.cc File ash/launcher/launcher_tooltip_manager.cc (right): http://codereview.chromium.org/10808102/diff/1/ash/launcher/launcher_tooltip_manager.cc#newcode248 ash/launcher/launcher_tooltip_manager.cc:248: MessageLoopForUI::current()->PostTask( nit: is it worthwhile to move this ...
8 years, 5 months ago (2012-07-24 16:39:50 UTC) #2
Jun Mukai
http://codereview.chromium.org/10808102/diff/1/ash/launcher/launcher_tooltip_manager.cc File ash/launcher/launcher_tooltip_manager.cc (right): http://codereview.chromium.org/10808102/diff/1/ash/launcher/launcher_tooltip_manager.cc#newcode248 ash/launcher/launcher_tooltip_manager.cc:248: MessageLoopForUI::current()->PostTask( On 2012/07/24 16:39:50, Daniel Erat wrote: > nit: ...
8 years, 5 months ago (2012-07-25 07:10:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10808102/7001
8 years, 5 months ago (2012-07-25 09:58:16 UTC) #4
commit-bot: I haz the power
8 years, 5 months ago (2012-07-25 11:17:40 UTC) #5
Change committed as 148308

Powered by Google App Engine
This is Rietveld 408576698