Index: chrome/browser/ui/gtk/download/download_item_drag.cc |
diff --git a/chrome/browser/ui/gtk/download/download_item_drag.cc b/chrome/browser/ui/gtk/download/download_item_drag.cc |
index 1e5575f0ba462e403955d3b73d8a8bfb898acae6..74ddd42c331ae4ae26f5b34afaba95046ccbfe55 100644 |
--- a/chrome/browser/ui/gtk/download/download_item_drag.cc |
+++ b/chrome/browser/ui/gtk/download/download_item_drag.cc |
@@ -109,11 +109,6 @@ void DownloadItemDrag::SetSource(GtkWidget* widget, |
DragData::AttachToWidget(drag_data.Pass(), widget, icon); |
} |
-// static |
-void DownloadItemDrag::BeginDrag(const DownloadItem* item, gfx::Image* icon) { |
- new DownloadItemDrag(item, icon); |
-} |
- |
DownloadItemDrag::DownloadItemDrag(const DownloadItem* item, gfx::Image* icon) |
: CustomDrag(icon, kDownloadItemCodeMask, kDownloadItemDragAction), |
drag_data_(new DragData(item)) {} |
@@ -131,5 +126,7 @@ void DownloadItemDrag::OnDragDataGet(GtkWidget* widget, |
void DragDownloadItem(const content::DownloadItem* download, |
gfx::Image* icon, |
gfx::NativeView view) { |
- DownloadItemDrag::BeginDrag(download, icon); |
+ // This starts the drag process, the lifetime of this object is tied to the |
+ // system drag. |
+ new DownloadItemDrag(download, icon); |
} |