| Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/gtk/download/download_item_gtk.cc (revision 150095)
|
| +++ chrome/browser/ui/gtk/download/download_item_gtk.cc (working copy)
|
| @@ -326,6 +326,9 @@
|
| }
|
|
|
| switch (download->GetState()) {
|
| + case DownloadItem::REMOVING:
|
| + parent_shelf_->RemoveDownloadItem(this); // This will delete us!
|
| + return;
|
| case DownloadItem::CANCELLED:
|
| StopDownloadProgress();
|
| gtk_widget_queue_draw(progress_area_.get());
|
| @@ -369,11 +372,6 @@
|
| UpdateStatusLabel(status_text_);
|
| }
|
|
|
| -void DownloadItemGtk::OnDownloadDestroyed(DownloadItem* download) {
|
| - parent_shelf_->RemoveDownloadItem(this);
|
| - // This will delete us!
|
| -}
|
| -
|
| void DownloadItemGtk::AnimationProgressed(const ui::Animation* animation) {
|
| if (animation == &complete_animation_) {
|
| gtk_widget_queue_draw(progress_area_.get());
|
|
|