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

Issue 2771803004: Glue OfflineContentProvider to the download service (Closed)

Created:
3 years, 9 months ago by David Trainor- moved to gerrit
Modified:
3 years, 8 months ago
Reviewers:
qinmin, gone
CC:
chromium-reviews, asanka, dewittj+watch_chromium.org, Peter Beverloo, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, harkness+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Glue OfflineContentProvider to the download service Add support for OfflineItems showing up in the DownloadNotificationService. This consists of a few changes: - Building a glue class between the OfflineContentAggregator and the SystemDownloadNotifier. - Adding some properties to DownloadInfo to support the properties OfflineItem needs ('isTransient' and 'isOpenable'). - Update the SharedPrefs to store the isTransient property. BUG=691805 Review-Url: https://codereview.chromium.org/2771803004 Cr-Commit-Position: refs/heads/master@{#460636} Committed: https://chromium.googlesource.com/chromium/src/+/e872b7528ab479490c19761d64a3784d68ae271f

Patch Set 1 #

Patch Set 2 : Updated tests #

Total comments: 13

Patch Set 3 : Address comments #

Patch Set 4 : Rebased #

Patch Set 5 : Fix compile failure #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased #

Patch Set 8 : Rebase issue #

Patch Set 9 : Fix context issue #

Patch Set 10 : Fixing test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -117 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java View 1 2 6 chunks +75 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 3 4 5 6 19 chunks +71 lines, -48 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java View 1 2 12 chunks +69 lines, -15 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java View 1 2 3 4 5 6 3 chunks +14 lines, -10 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java View 1 2 3 4 5 6 7 8 1 chunk +118 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadManagerServiceTest.java View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java View 1 2 3 4 5 6 7 8 9 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntryTest.java View 1 19 chunks +122 lines, -23 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java View 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java View 2 chunks +7 lines, -3 lines 0 comments Download
M components/offline_items_collection/core/android/offline_item_bridge.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M components/offline_items_collection/core/offline_item.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M components/offline_items_collection/core/offline_item.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M components/offline_items_collection/core/offline_item_state.h View 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 50 (38 generated)
David Trainor- moved to gerrit
ptal thanks! Some of this might roll back into the content id CL (I found ...
3 years, 9 months ago (2017-03-24 00:52:04 UTC) #2
qinmin
lgtm % nits https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java File chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java (right): https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java:99: DownloadInfo info = new DownloadInfo.Builder() nit: ...
3 years, 9 months ago (2017-03-27 17:38:51 UTC) #3
gone
https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode696 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:696: * @param isTransient Whether or not clicking on the ...
3 years, 9 months ago (2017-03-27 20:44:47 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/2771803004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode696 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:696: * @param isTransient Whether or not clicking on the ...
3 years, 8 months ago (2017-03-28 20:04:09 UTC) #9
David Trainor- moved to gerrit
3 years, 8 months ago (2017-03-28 21:14:08 UTC) #10
gone
lgtm
3 years, 8 months ago (2017-03-28 22:36:09 UTC) #11
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/2771803004/150001
3 years, 8 months ago (2017-03-29 22:09:09 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/237474) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 22:42:04 UTC) #37
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/2771803004/170001
3 years, 8 months ago (2017-03-30 01:16:46 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 8 months ago (2017-03-30 01:59:06 UTC) #45
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/2771803004/170001
3 years, 8 months ago (2017-03-30 02:57:01 UTC) #47
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 03:11:06 UTC) #50
Message was sent while issue was closed.
Committed patchset #10 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/e872b7528ab479490c19761d64a3...

Powered by Google App Engine
This is Rietveld 408576698