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

Issue 2176013002: Add support for OfflinePagesDownloadBridge. (Closed)

Created:
4 years, 5 months ago by Dmitry Titov
Modified:
4 years, 4 months ago
Reviewers:
fgorski, blundell
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for OfflinePagesDownloadBridge. This adds initial DownloadUIAdapter and DownloadUIItem. Adapter is a class that caches filtered subset of OfflinePages that should be shown in DownloadsUI. DownloadUIItem mimics DownloadItem and is a collection of fields needed for UI. BUG=630817 Committed: https://crrev.com/d35eb5bffa7c8ab10a33ec736644c5e91df3e32b Cr-Commit-Position: refs/heads/master@{#407923}

Patch Set 1 #

Total comments: 29

Patch Set 2 : CR feedback and tests. #

Total comments: 36

Patch Set 3 : More comments and compile fixes #

Total comments: 1

Patch Set 4 : gypi fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+655 lines, -0 lines) Patch
M components/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages.gypi View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/BUILD.gn View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/download_ui_adapter.h View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/download_ui_adapter.cc View 1 2 1 chunk +146 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/download_ui_adapter_unittest.cc View 1 2 1 chunk +280 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/download_ui_item.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A components/offline_pages/downloads/download_ui_item.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (13 generated)
fgorski
https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc#newcode26 components/offline_pages/downloads/download_ui_adapter.cc:26: void DownloadUIAdapter::AddObserver(Observer* observer) { Consider DCHECKing the observer. https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc#newcode115 ...
4 years, 5 months ago (2016-07-25 17:09:57 UTC) #2
fgorski
https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc#newcode121 components/offline_pages/downloads/download_ui_adapter.cc:121: DownloadUIItemsMap::const_iterator it = items_.find(item->guid); this is not used.
4 years, 5 months ago (2016-07-25 17:28:41 UTC) #3
Dmitry Titov
https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc#newcode26 components/offline_pages/downloads/download_ui_adapter.cc:26: void DownloadUIAdapter::AddObserver(Observer* observer) { On 2016/07/25 17:09:56, fgorski wrote: ...
4 years, 5 months ago (2016-07-26 00:41:25 UTC) #4
Dmitry Titov
+Colin Blundell as OWNER for components/BUILD.gn change. Thanks!
4 years, 5 months ago (2016-07-26 00:49:22 UTC) #6
blundell
//components/BUILD.gn lgtm
4 years, 4 months ago (2016-07-26 06:32:52 UTC) #11
fgorski
https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_item.h File components/offline_pages/downloads/download_ui_item.h (right): https://codereview.chromium.org/2176013002/diff/1/components/offline_pages/downloads/download_ui_item.h#newcode30 components/offline_pages/downloads/download_ui_item.h:30: base::FilePath target_path; On 2016/07/26 00:41:25, Dmitry Titov wrote: > ...
4 years, 4 months ago (2016-07-26 16:25:22 UTC) #12
fgorski
4 more comments (as my local compiler complains)... Overall things look good. https://codereview.chromium.org/2176013002/diff/20001/components/offline_pages/downloads/download_ui_adapter_unittest.cc File components/offline_pages/downloads/download_ui_adapter_unittest.cc ...
4 years, 4 months ago (2016-07-26 18:04:00 UTC) #13
Dmitry Titov
https://codereview.chromium.org/2176013002/diff/20001/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2176013002/diff/20001/components/offline_pages/downloads/download_ui_adapter.cc#newcode102 components/offline_pages/downloads/download_ui_adapter.cc:102: DCHECK(items_.find(new_item->guid) == items_.end()); On 2016/07/26 16:25:21, fgorski wrote: > ...
4 years, 4 months ago (2016-07-26 19:56:49 UTC) #16
fgorski
lgtm mod gypi file problem https://codereview.chromium.org/2176013002/diff/20001/components/offline_pages/downloads/download_ui_adapter_unittest.cc File components/offline_pages/downloads/download_ui_adapter_unittest.cc (right): https://codereview.chromium.org/2176013002/diff/20001/components/offline_pages/downloads/download_ui_adapter_unittest.cc#newcode107 components/offline_pages/downloads/download_ui_adapter_unittest.cc:107: std::unique_ptr<DownloadUIAdapter> adapter; On 2016/07/26 ...
4 years, 4 months ago (2016-07-26 20:10:58 UTC) #19
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/2176013002/60001
4 years, 4 months ago (2016-07-26 20:42:07 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-26 21:44:30 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 21:46:37 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d35eb5bffa7c8ab10a33ec736644c5e91df3e32b
Cr-Commit-Position: refs/heads/master@{#407923}

Powered by Google App Engine
This is Rietveld 408576698