summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/download_started_animation.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 21:53:58 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 21:53:58 +0000
commit9d9bbee2f0cf6e02188cef6344f99f758f6fac27 (patch)
tree41445047fa8b671337b498bea757b0abacc61a0b /chrome/browser/views/download_started_animation.h
parent93e1840d65de867d2ec82c97191e9bc028581b68 (diff)
downloadchromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.zip
chromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.tar.gz
chromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.tar.bz2
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
Diffstat (limited to 'chrome/browser/views/download_started_animation.h')
-rw-r--r--chrome/browser/views/download_started_animation.h5
1 files changed, 4 insertions, 1 deletions
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);
};