From 0c03b435f8457e8601c80f44a69a56d9f96a274a Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 17 Nov 2009 21:41:08 +0000 Subject: Fix race conditions where an object's constructor uses PostTask on itself. This isn't safe since the posted task can execute before the constructor returns, leading to destruction of the object. BUG=27944 Review URL: http://codereview.chromium.org/399016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32213 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/aero_tooltip_manager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/widget/aero_tooltip_manager.h') diff --git a/views/widget/aero_tooltip_manager.h b/views/widget/aero_tooltip_manager.h index dda3376..8cfca64 100644 --- a/views/widget/aero_tooltip_manager.h +++ b/views/widget/aero_tooltip_manager.h @@ -40,7 +40,8 @@ class AeroTooltipManager : public TooltipManagerWin { class InitialTimer : public base::RefCounted { public: - InitialTimer(AeroTooltipManager* manager, int time); + explicit InitialTimer(AeroTooltipManager* manager); + void Start(int time); void Disown(); void Execute(); -- cgit v1.1