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

Issue 2343363005: [Download Home] Open supported files in Custom Tabs (Closed)

Created:
4 years, 3 months ago by gone
Modified:
4 years, 3 months ago
Reviewers:
Theresa, qinmin, Ian Wen
CC:
chromium-reviews, asanka, lizeb+watch-custom-tabs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Download Home] Open supported files in Custom Tabs Downloads stuff: * Add a function to DownloadManagerService that queries whether a MIME type is supported for display in Chrome. * When opening a file via Download Home, query whether the file type is supported. If so, send it to a new tab instead of Intenting out. * Move Share and View intent code out to DownloadUtils and expose constants everywhere to allow this to happen. * Removed periods from download notification Strings. Custom Tab stuff: * Added a "media viewer" intent extra that makes Custom Tabs opened by Download Home hide unnecessary menu items. BUG=616324, 648454 Committed: https://crrev.com/4876f0de97118aedbba17f973387bab3f539120a Cr-Commit-Position: refs/heads/master@{#419921}

Patch Set 1 #

Patch Set 2 : Rebasing #

Total comments: 4

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -163 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/UrlConstants.java View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java View 4 chunks +13 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java View 1 2 4 chunks +167 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/BackendProvider.java View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java View 9 chunks +63 lines, -24 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java View 1 2 7 chunks +1 line, -129 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/download/download_manager_service.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/download/download_manager_service.cc View 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
gone
Min for the DownloadManager stuff. Theresa for the DownloadUtils stuff I moved. Ian for the ...
4 years, 3 months ago (2016-09-20 01:10:53 UTC) #4
qinmin
DownloadManagerService.java/download_manager_service.cc(h) lgtm
4 years, 3 months ago (2016-09-20 19:05:22 UTC) #11
Theresa
lgtm https://codereview.chromium.org/2343363005/diff/20001/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/2343363005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode176 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:176: public static Intent createShareIntent(List<DownloadHistoryItemWrapper> selectedItems) { nit: s/selectedItems/items? ...
4 years, 3 months ago (2016-09-20 20:04:12 UTC) #12
Ian Wen
lgtm for custom tab stuff. https://codereview.chromium.org/2343363005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java (right): https://codereview.chromium.org/2343363005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode105 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:105: readItLaterItem.setVisible(false); No need to ...
4 years, 3 months ago (2016-09-20 21:15:55 UTC) #13
gone
https://codereview.chromium.org/2343363005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java (right): https://codereview.chromium.org/2343363005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode105 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:105: readItLaterItem.setVisible(false); On 2016/09/20 21:15:55, Ian Wen wrote: > No ...
4 years, 3 months ago (2016-09-20 21:56:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343363005/40001
4 years, 3 months ago (2016-09-20 21:56:51 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 00:42:40 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 00:44:07 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4876f0de97118aedbba17f973387bab3f539120a
Cr-Commit-Position: refs/heads/master@{#419921}

Powered by Google App Engine
This is Rietveld 408576698