diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 14:08:49 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 14:08:49 +0000 |
commit | a3d2bc436120505fbb093be2f65703583f1450ce (patch) | |
tree | b3ab1c7869776f317ea9d62d702fa72690ae98d9 /chrome/browser/download/download_status_updater.h | |
parent | 582f659575c277866ad26750e2e5960d7fbd3003 (diff) | |
download | chromium_src-a3d2bc436120505fbb093be2f65703583f1450ce.zip chromium_src-a3d2bc436120505fbb093be2f65703583f1450ce.tar.gz chromium_src-a3d2bc436120505fbb093be2f65703583f1450ce.tar.bz2 |
Fix DCHECK assertion failures in DownloadStatusUpdater.
They indicate real problems, including possible NULL
pointer dereferences.
BUG=57577
TEST=none
Review URL: http://codereview.chromium.org/3519005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_status_updater.h')
-rw-r--r-- | chrome/browser/download/download_status_updater.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/download/download_status_updater.h b/chrome/browser/download/download_status_updater.h index cdfd5b8..c513bc3 100644 --- a/chrome/browser/download/download_status_updater.h +++ b/chrome/browser/download/download_status_updater.h @@ -9,11 +9,13 @@ #include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/weak_ptr.h" class DownloadStatusUpdaterDelegate; // Keeps track of download progress for the entire browser. -class DownloadStatusUpdater { +class DownloadStatusUpdater + : public base::SupportsWeakPtr<DownloadStatusUpdater> { public: DownloadStatusUpdater(); ~DownloadStatusUpdater(); |