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

Issue 450003002: Pass display names for uploaded content URI files (Closed)

Created:
6 years, 4 months ago by qinmin
Modified:
6 years, 4 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Pass display names for uploaded content URI files The display names are missing for content URI files. That will cause some upload to fail. This CL translates the content URI to displayed name and passes them to native code. BUG=402537 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289102

Patch Set 1 #

Patch Set 2 : fix NPE since results can be null #

Total comments: 8

Patch Set 3 : addressing comments #

Total comments: 4

Patch Set 4 : move getDisplayName(Uri, ContentResolver) to ContentUriUtils #

Total comments: 3

Patch Set 5 : move queries on ContentResolver to another thread #

Total comments: 4

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -49 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 2 3 4 5 5 chunks +61 lines, -4 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M base/android/java/src/org/chromium/base/ContentUriUtils.java View 1 2 3 4 5 3 chunks +33 lines, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java View 1 2 3 4 5 5 chunks +40 lines, -40 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
qinmin
PTAL
6 years, 4 months ago (2014-08-07 22:24:22 UTC) #1
boliu
I don't really understand this area of code, just some general comments... https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java ...
6 years, 4 months ago (2014-08-08 00:59:59 UTC) #2
qinmin
https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode34 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:34: Context mContext; On 2014/08/08 00:59:59, boliu wrote: > final ...
6 years, 4 months ago (2014-08-08 01:20:59 UTC) #3
benm (inactive)
https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode247 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:247: return ""; If we can't get a display name, ...
6 years, 4 months ago (2014-08-08 12:08:58 UTC) #4
qinmin
https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode247 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:247: return ""; I think the first answer depends on ...
6 years, 4 months ago (2014-08-08 15:42:35 UTC) #5
qinmin
Bo/Ben, is this good to go?
6 years, 4 months ago (2014-08-11 16:50:04 UTC) #6
boliu
https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode225 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:225: private String resolveFileName(String filePath) { Can we expose the ...
6 years, 4 months ago (2014-08-11 16:58:07 UTC) #7
sgurun-gerrit only
https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode226 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:226: private String resolveFileName(String filePath) { On 2014/08/08 01:20:58, qinmin ...
6 years, 4 months ago (2014-08-11 17:10:11 UTC) #8
sgurun-gerrit only
On 2014/08/11 17:10:11, sgurun wrote: > https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java > File > android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java > (right): > > ...
6 years, 4 months ago (2014-08-11 17:19:48 UTC) #9
qinmin
filed crbug.com/402537 for this https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode226 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:226: private String resolveFileName(String filePath) { ...
6 years, 4 months ago (2014-08-11 18:08:00 UTC) #10
boliu
I'll let selim stamp this since he has a bit more experience here. I'm ok ...
6 years, 4 months ago (2014-08-11 19:58:14 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/450003002/diff/60001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/60001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode226 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:226: // However, that is incomparable to the latency introduce ...
6 years, 4 months ago (2014-08-11 21:23:24 UTC) #12
qinmin
https://codereview.chromium.org/450003002/diff/60001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/60001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode226 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:226: // However, that is incomparable to the latency introduce ...
6 years, 4 months ago (2014-08-11 22:49:29 UTC) #13
sgurun-gerrit only
On 2014/08/11 22:49:29, qinmin wrote: > https://codereview.chromium.org/450003002/diff/60001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java > File > android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java > (right): > > ...
6 years, 4 months ago (2014-08-11 23:41:11 UTC) #14
qinmin
+yaron for OWNER of ui/android and base/android
6 years, 4 months ago (2014-08-11 23:59:51 UTC) #15
Yaron
https://codereview.chromium.org/450003002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode218 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:218: private class GetDisplayNameTask extends AsyncTask<Void, Void, String[]> { Why ...
6 years, 4 months ago (2014-08-12 00:28:54 UTC) #16
qinmin
https://codereview.chromium.org/450003002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/450003002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode218 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:218: private class GetDisplayNameTask extends AsyncTask<Void, Void, String[]> { On ...
6 years, 4 months ago (2014-08-12 17:13:21 UTC) #17
Yaron
lgtm
6 years, 4 months ago (2014-08-12 17:28:53 UTC) #18
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 4 months ago (2014-08-12 21:52:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/450003002/140001
6 years, 4 months ago (2014-08-12 21:54:39 UTC) #20
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 22:53:44 UTC) #21
Message was sent while issue was closed.
Change committed as 289102

Powered by Google App Engine
This is Rietveld 408576698