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

Issue 2698593002: (Android) Blocking multiple scheduled downloads for the same URL (Closed)

Created:
3 years, 10 months ago by marcin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, ntp-dev+reviews_chromium.org, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, net-reviews_chromium.org, chili+watch_chromium.org, noyau+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(Android) Blocking multiple scheduled downloads for the same URL Currently Chrome Chrome doesn't block multiple scheduled downloads for the same URL. Patch is adding adequate checks for * Download icon and * Download page later button and * Suggestions Additionally showDownloadingToast contains call for DownloadUtils function to make it more clear, that code there is the same. User experiences (displaying Toast after clicking icon, disabling button after clicking, etc.) are not changed. BUG=693218

Patch Set 1 : Patch #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -28 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java View 3 chunks +34 lines, -16 lines 5 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsNavigationDelegateImpl.java View 3 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 2 chunks +25 lines, -6 lines 2 comments Download

Messages

Total messages: 36 (14 generated)
marcin
3 years, 10 months ago (2017-02-16 21:50:01 UTC) #10
Dmitry Titov
Thanks for a patch! There are couple of notes: https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:193: ...
3 years, 10 months ago (2017-02-17 02:40:59 UTC) #13
marcin
https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:193: .getRequestsInQueue(new Callback<SavePageRequest[]>() { On 2017/02/17 02:40:59, Dmitry Titov wrote: ...
3 years, 10 months ago (2017-02-17 08:02:32 UTC) #14
marcin
https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:193: .getRequestsInQueue(new Callback<SavePageRequest[]>() { On 2017/02/17 08:02:32, marcin wrote: > ...
3 years, 10 months ago (2017-02-18 22:38:47 UTC) #15
marcin
3 years, 10 months ago (2017-02-20 19:05:43 UTC) #17
PEConn
+dgn - do you mind taking a look at this? It looks OK to me, ...
3 years, 10 months ago (2017-02-21 11:20:49 UTC) #19
dgn
On 2017/02/21 11:20:49, PEConn wrote: > +dgn - do you mind taking a look at ...
3 years, 10 months ago (2017-02-21 13:50:26 UTC) #20
dgn
https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:193: .getRequestsInQueue(new Callback<SavePageRequest[]>() { On 2017/02/17 08:02:32, marcin wrote: > ...
3 years, 10 months ago (2017-02-21 13:51:15 UTC) #21
marcin
> Also, question: Will it handle resuming download queries that might be paused or > ...
3 years, 10 months ago (2017-02-21 18:24:05 UTC) #22
marcin
https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:193: .getRequestsInQueue(new Callback<SavePageRequest[]>() { On 2017/02/21 13:51:14, dgn wrote: > ...
3 years, 10 months ago (2017-02-21 18:24:31 UTC) #23
Dmitry Titov
On 2017/02/21 18:24:31, marcin wrote: > https://codereview.chromium.org/2698593002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java > File > chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java > (right): > > ...
3 years, 10 months ago (2017-02-21 18:34:03 UTC) #24
marcin
On 2017/02/21 18:34:03, Dmitry Titov wrote: > On 2017/02/21 18:24:31, marcin wrote: > > > ...
3 years, 10 months ago (2017-02-21 18:45:31 UTC) #25
cbentzel
Sent mail offlist, but curious about where my help is being requested. Is it for ...
3 years, 10 months ago (2017-02-23 11:29:37 UTC) #26
johnmarienettal
3 years, 10 months ago (2017-02-23 13:19:48 UTC) #28
marcin
On 2017/02/23 11:29:37, cbentzel wrote: > Sent mail offlist, but curious about where my help ...
3 years, 10 months ago (2017-02-23 21:52:27 UTC) #29
marcin
Hi all, Any proposals here better than proposed patch ? If not, can be LGTM ...
3 years, 9 months ago (2017-02-28 18:45:30 UTC) #30
Dmitry Titov
First of all, thanks for filing the bug, the issue you found is a real ...
3 years, 9 months ago (2017-03-01 19:47:35 UTC) #31
marcin
On 2017/03/01 19:47:35, Dmitry Titov wrote: > First of all, thanks for filing the bug, ...
3 years, 9 months ago (2017-03-01 23:41:33 UTC) #32
cbentzel
On 2017/03/01 23:41:33, marcin wrote: > On 2017/03/01 19:47:35, Dmitry Titov wrote: > > First ...
3 years, 9 months ago (2017-03-03 16:07:50 UTC) #33
Dmitry Titov
On 2017/03/03 16:07:50, cbentzel wrote: > On 2017/03/01 23:41:33, marcin wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-03 22:07:39 UTC) #34
Dmitry Titov
See https://codereview.chromium.org/2698593002/ for the alias of the guy and context. On Fri, Mar 3, 2017 ...
3 years, 9 months ago (2017-03-21 21:53:13 UTC) #35
Dmitry Titov
3 years, 9 months ago (2017-03-21 21:54:24 UTC) #36
Message was sent while issue was closed.
Sorry for spam, wrong thread :) We are following up on sharing a design doc
with Marcin :)

On Tue, Mar 21, 2017 at 2:52 PM Dmitry Titov <dimich@chromium.org> wrote:

> See https://codereview.chromium.org/2698593002/ for the alias of the guy
> and context.
>
> On Fri, Mar 3, 2017 at 2:07 PM <dimich@chromium.org> wrote:
>
> On 2017/03/03 16:07:50, cbentzel wrote:
> > On 2017/03/01 23:41:33, marcin wrote:
> > > On 2017/03/01 19:47:35, Dmitry Titov wrote:
> > > > First of all, thanks for filing the bug, the issue you found is a
> real one
> > and
> > > > will have to be fixed!
> > > >
> > > > The patch will likely need to be updated though, I've mentioned it
> in my
> > first
> > > > comment with quite strongly, sorry if it didn't go over as such.
> > > >
> > > > I've updated the bug
> > > > https://bugs.chromium.org/p/chromium/issues/detail?id=693218
> > > > What we need here is a better UX designed, here is why we think so:
> > > >
> > > > - the Download button in main menu, when it detects the existing
> page with
> > the
> > > > same URL, shows infobar asking user if they want to download another
> copy
> or
> > > > cancel.
> > > > - the blue button on Dino page goes disabled once clicked, partially
> to
> > > prevent
> > > > clicking again - but if the user refreshes the page (resulting again
> in
> Dino
> > > > page), the button is enabled again.
> > > > - The Download button that is shown when user looks at Dino page is
> enabled
> > > all
> > > > the time.
> > > >
> > > > These behaviors are inconsistent, so adding a check to more places
> and
> just
> > > > ignoring user action would be adding to a 'quirky' behavior rather
> then
> > fixing
> > > > it.
> > > >
> > > > We will work on a design doc that would propose a consistent UI
> treatment
> of
> > > > these situations (likely using combination of showing the infobar in
> more
> > > > places, and disabling buttons). The reason we need that design doc
> and not
> > > just
> > > > vote in the codereview log is that our UI designers should chime in,
> to
> keep
> > > UI
> > > > consistent with other pieces and behaviors. Once we have this done,
> you
> are
> > > more
> > > > than welcome to update the CL to this design doc - all the necessary
> > > > communication will be on the bug you filed. We'll also add you to the
> design
> > > doc
> > > > as well so you could chime in. Stay tuned!
> > >
> > > LGTM, thank you!
> >
> > Is this CL going to be closed out, or do you expect to create a new one?
> >
> > [My OCD is kicking in for keeping my code review dashboard clean]
>
> We could close this one and when we have a design doc (in about a week or
> two) -
> create a new one.
> I'd let marcin@ close it...
>
> https://codereview.chromium.org/2698593002/
>
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698