Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Issue 11801022: Allow dragging a download only after the download is complete. (Closed)

Created:
7 years, 11 months ago by asanka
Modified:
7 years, 11 months ago
CC:
chromium-reviews, asanka, nkostylev+watch_chromium.org, benjhayden+dwatch_chromium.org, achuith+watch_chromium.org, rdsmith+dwatch_chromium.org, sail+watch_chromium.org, Randy Smith (Not in Mondays), dcheng, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Allow dragging a download only after the download is complete. This was already the case on views and cocoa. However GTK was allowing a drag after the large icon finishes loading. This CL also updates callers to use GetTargetFilePath() on the DownloadItem instead of GetFullPath(). For a completed download, both methods are equivalent, but we prefer the former as it is clear that the path being requested is the final target path. BUG=116551 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176159

Patch Set 1 : #

Patch Set 2 : Merge with trunk at 175906 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M chrome/browser/chromeos/drive/drive_download_observer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_util_mac.mm View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/custom_drag.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/download/download_item_gtk.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
asanka
estade: chrome/browser/ui/gtk The functional change is to delay calling DownloadItemDrag::SetSource until the download completes. thakis: ...
7 years, 11 months ago (2013-01-08 23:22:02 UTC) #1
Nico
cocoa lgtm
7 years, 11 months ago (2013-01-09 06:19:46 UTC) #2
benjhayden
lgtm
7 years, 11 months ago (2013-01-09 18:41:52 UTC) #3
Evan Stade
gtk lgtm
7 years, 11 months ago (2013-01-09 22:35:51 UTC) #4
asanka
Thanks! hashimoto: OWNER check for chrome/browser/chromeos/drive?
7 years, 11 months ago (2013-01-09 23:46:47 UTC) #5
hashimoto
lgtm
7 years, 11 months ago (2013-01-10 03:59:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/11801022/5001
7 years, 11 months ago (2013-01-10 16:24:28 UTC) #7
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/gtk/download/download_item_gtk.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-10 16:24:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/11801022/16001
7 years, 11 months ago (2013-01-10 19:46:51 UTC) #9
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 21:30:40 UTC) #10
Message was sent while issue was closed.
Change committed as 176159

Powered by Google App Engine
This is Rietveld 408576698