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

Issue 60673003: Allow file: uris for <file> input types (Closed)

Created:
7 years, 1 month ago by Miguel Garcia
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Allow file: uris for <file> input types Also changed all the if/else to early returns BUG=176703 Test: Installed File Manager from play Loaded GMail in html mode (mail.google.com/?ui=html) verified that the Attach file is in fact a <file> tag. Sent myself a mail with an attachment. Verifed that the file was properly sent Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233965

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -15 lines) Patch
M ui/android/java/src/org/chromium/ui/SelectFileDialog.java View 1 1 chunk +22 lines, -15 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Miguel Garcia
aurimas as the main reviwer since he upstreamed this tedchoc for owners approval
7 years, 1 month ago (2013-11-05 19:44:03 UTC) #1
aurimas (slooooooooow)
LGTM with a nit. Also you might want to communicate with qinmin@ to see how ...
7 years, 1 month ago (2013-11-05 20:52:07 UTC) #2
Miguel Garcia
https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java File ui/android/java/src/org/chromium/ui/SelectFileDialog.java (right): https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java#newcode161 ui/android/java/src/org/chromium/ui/SelectFileDialog.java:161: if ("file".equals(results.getData().getScheme())) { On 2013/11/05 20:52:07, aurimas wrote: > ...
7 years, 1 month ago (2013-11-06 18:07:51 UTC) #3
Miguel Garcia
On 2013/11/06 18:07:51, Miguel Garcia wrote: > https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java > File ui/android/java/src/org/chromium/ui/SelectFileDialog.java (right): > > https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java#newcode161 ...
7 years, 1 month ago (2013-11-08 12:55:36 UTC) #4
Ted C
lgtm https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java File ui/android/java/src/org/chromium/ui/SelectFileDialog.java (right): https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chromium/ui/SelectFileDialog.java#newcode161 ui/android/java/src/org/chromium/ui/SelectFileDialog.java:161: if ("file".equals(results.getData().getScheme())) { On 2013/11/06 18:07:51, Miguel Garcia ...
7 years, 1 month ago (2013-11-08 17:00:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/60673003/90001
7 years, 1 month ago (2013-11-08 17:23:39 UTC) #6
commit-bot: I haz the power
Change committed as 233965
7 years, 1 month ago (2013-11-08 20:27:26 UTC) #7
Miguel Garcia
7 years, 1 month ago (2013-11-09 07:09:07 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chrom...
File ui/android/java/src/org/chromium/ui/SelectFileDialog.java (right):

https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chrom...
ui/android/java/src/org/chromium/ui/SelectFileDialog.java:161: if
("file".equals(results.getData().getScheme())) {
Ok, will leave it as is then.

On 2013/11/08 17:00:13, Ted C wrote:
> On 2013/11/06 18:07:51, Miguel Garcia wrote:
> > On 2013/11/05 20:52:07, aurimas wrote:
> > > Should pull "file" out as a constant.
> > 
> > Really? In this case it just seems an overkill. I was looking if the
constant
> > was officially defined somewhere else but couldn't not find it.
> > 
> 
> I hit this same issue anytime I want to check against http or https, there
> doesn't seem to be constants anywhere and almost all usages are inlined.  I
> don't necessarily like it, but it's consistent which is often more important.

https://codereview.chromium.org/60673003/diff/1/ui/android/java/src/org/chrom...
ui/android/java/src/org/chromium/ui/SelectFileDialog.java:189: cursor.close();
On 2013/11/08 17:00:13, Ted C wrote:
> this could all fit on one line

Done.

Powered by Google App Engine
This is Rietveld 408576698