From 9d9bbee2f0cf6e02188cef6344f99f758f6fac27 Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Fri, 17 Apr 2009 21:53:58 +0000 Subject: Due to some crashes in teardown, change NotificationObservers for TAB_CONTENTS_DESTROYED to use the NotificationRegistrar to ensure proper cleanup. Review URL: http://codereview.chromium.org/79051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13970 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/download_started_animation.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views/download_started_animation.h') diff --git a/chrome/browser/views/download_started_animation.h b/chrome/browser/views/download_started_animation.h index f2c7916..bd8dec5 100644 --- a/chrome/browser/views/download_started_animation.h +++ b/chrome/browser/views/download_started_animation.h @@ -7,7 +7,7 @@ #include "base/gfx/rect.h" #include "chrome/common/animation.h" -#include "chrome/common/notification_observer.h" +#include "chrome/common/notification_registrar.h" #include "chrome/views/controls/image_view.h" namespace views { @@ -54,6 +54,9 @@ class DownloadStartedAnimation : public Animation, // much heartbreak. gfx::Rect tab_contents_bounds_; + // A scoped container for notification registries. + NotificationRegistrar registrar_; + DISALLOW_COPY_AND_ASSIGN(DownloadStartedAnimation); }; -- cgit v1.1