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

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)

Created:
4 years, 3 months ago by chili
Modified:
4 years, 2 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Use the new policy bits BUG=641053 Committed: https://crrev.com/f3de4523eff1856d2fe99c80a76bb7692d1e8beb Cr-Commit-Position: refs/heads/master@{#423402}

Patch Set 1 #

Patch Set 2 : also rename isUserRequested in offline page model impl #

Total comments: 9

Patch Set 3 : code review update #

Total comments: 1

Patch Set 4 : add client policy controller to request coordinator and use it #

Patch Set 5 : fix download bridge and ntp suggestions to use correct policy controller #

Total comments: 6

Patch Set 6 : Resolve code review comment #

Patch Set 7 : test fix #

Patch Set 8 : test fix #

Patch Set 9 : fix memory leak caused by test fix. #

Patch Set 10 : #

Patch Set 11 : i think i got it! Made sure it compiles #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -29 lines) Patch
M chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc View 1 2 3 4 5 chunks +11 lines, -8 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M components/offline_pages/downloads/download_notifying_observer.h View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M components/offline_pages/downloads/download_notifying_observer.cc View 1 2 3 6 chunks +15 lines, -7 lines 0 comments Download
M components/offline_pages/downloads/download_notifying_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -1 line 0 comments Download
M components/offline_pages/downloads/download_ui_adapter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/downloads/download_ui_adapter.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M components/offline_pages/downloads/download_ui_adapter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 59 (33 generated)
chili
Thought I sent this out last week. Oops. I've also a doc regarding the feature ...
4 years, 3 months ago (2016-09-19 21:46:46 UTC) #10
fgorski
mostly looks good https://codereview.chromium.org/2342443006/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (right): https://codereview.chromium.org/2342443006/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode77 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:77: DownloadUIAdapter::IsVisibleInUI(request->client_id())) { Have you considered calling ...
4 years, 3 months ago (2016-09-19 22:18:54 UTC) #11
romax
https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h File components/offline_pages/offline_page_model_impl.h (right): https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h#newcode261 components/offline_pages/offline_page_model_impl.h:261: // Check if |offline_page| is user-requested. I think the ...
4 years, 3 months ago (2016-09-19 23:00:24 UTC) #12
Pete Williamson
https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h File components/offline_pages/offline_page_model_impl.h (right): https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h#newcode262 components/offline_pages/offline_page_model_impl.h:262: bool IsRemovedOnCacheReset(const OfflinePageItem& offline_page) const; Drive-by: Why rename the ...
4 years, 3 months ago (2016-09-20 00:01:59 UTC) #14
chili
https://codereview.chromium.org/2342443006/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (right): https://codereview.chromium.org/2342443006/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode77 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:77: DownloadUIAdapter::IsVisibleInUI(request->client_id())) { On 2016/09/19 22:18:54, fgorski wrote: > Have ...
4 years, 3 months ago (2016-09-20 00:02:33 UTC) #15
chili
https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h File components/offline_pages/offline_page_model_impl.h (right): https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h#newcode262 components/offline_pages/offline_page_model_impl.h:262: bool IsRemovedOnCacheReset(const OfflinePageItem& offline_page) const; On 2016/09/20 00:01:59, Pete ...
4 years, 3 months ago (2016-09-20 00:06:21 UTC) #16
romax
https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h File components/offline_pages/offline_page_model_impl.h (right): https://codereview.chromium.org/2342443006/diff/20001/components/offline_pages/offline_page_model_impl.h#newcode262 components/offline_pages/offline_page_model_impl.h:262: bool IsRemovedOnCacheReset(const OfflinePageItem& offline_page) const; On 2016/09/20 00:06:21, chili ...
4 years, 3 months ago (2016-09-20 00:19:01 UTC) #17
Dmitry Titov
https://codereview.chromium.org/2342443006/diff/40001/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc File components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc (right): https://codereview.chromium.org/2342443006/diff/40001/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc#newcode47 components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc:47: return offline_pages::ClientPolicyController().IsSupportedByDownload( This is unorthodox way to use a ...
4 years, 3 months ago (2016-09-20 18:51:55 UTC) #18
chili
Hi all, Reviving this CL after a long-winded loop. TL;DR is that trying to use ...
4 years, 2 months ago (2016-10-01 00:00:20 UTC) #19
chili
friendly nudge :D PTAL
4 years, 2 months ago (2016-10-04 17:41:33 UTC) #20
romax
mostly looks good! sorry for the delayed response... however i still have the question about ...
4 years, 2 months ago (2016-10-04 17:50:34 UTC) #21
chili
https://codereview.chromium.org/2342443006/diff/80001/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc File components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc (right): https://codereview.chromium.org/2342443006/diff/80001/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc#newcode53 components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc:53: return offline_page_model_->GetPolicyController()->IsSupportedByDownload( On 2016/10/04 17:50:34, romax wrote: > sorry ...
4 years, 2 months ago (2016-10-04 18:08:53 UTC) #22
fgorski
lgtm https://codereview.chromium.org/2342443006/diff/80001/components/offline_pages/downloads/download_notifying_observer.h File components/offline_pages/downloads/download_notifying_observer.h (right): https://codereview.chromium.org/2342443006/diff/80001/components/offline_pages/downloads/download_notifying_observer.h#newcode45 components/offline_pages/downloads/download_notifying_observer.h:45: explicit DownloadNotifyingObserver( no need for this to be ...
4 years, 2 months ago (2016-10-04 18:28:50 UTC) #23
chili
https://codereview.chromium.org/2342443006/diff/80001/components/offline_pages/downloads/download_notifying_observer.h File components/offline_pages/downloads/download_notifying_observer.h (right): https://codereview.chromium.org/2342443006/diff/80001/components/offline_pages/downloads/download_notifying_observer.h#newcode45 components/offline_pages/downloads/download_notifying_observer.h:45: explicit DownloadNotifyingObserver( On 2016/10/04 18:28:50, fgorski wrote: > no ...
4 years, 2 months ago (2016-10-04 20:20:25 UTC) #24
Dmitry Titov
lgtm
4 years, 2 months ago (2016-10-04 20:33:50 UTC) #25
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/2342443006/100001
4 years, 2 months ago (2016-10-05 00:11:19 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/80858)
4 years, 2 months ago (2016-10-05 00:23:29 UTC) #30
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/2342443006/120001
4 years, 2 months ago (2016-10-05 01:05:20 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/247266)
4 years, 2 months ago (2016-10-05 01:15:05 UTC) #35
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/2342443006/140001
4 years, 2 months ago (2016-10-05 20:03:51 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/238453)
4 years, 2 months ago (2016-10-05 21:52:15 UTC) #40
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/2342443006/160001
4 years, 2 months ago (2016-10-05 22:19:33 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/247986)
4 years, 2 months ago (2016-10-05 22:32:39 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/2342443006/200001
4 years, 2 months ago (2016-10-06 02:27:18 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-06 02:33:35 UTC) #57
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 02:35:51 UTC) #59
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f3de4523eff1856d2fe99c80a76bb7692d1e8beb
Cr-Commit-Position: refs/heads/master@{#423402}

Powered by Google App Engine
This is Rietveld 408576698