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

Issue 2289143005: [Offline pages] Add a builder and feature struct to policy (Closed)

Created:
4 years, 3 months ago by chili
Modified:
4 years, 3 months ago
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Add a builder and feature struct to policy BUG=641053 Committed: https://crrev.com/c7ae4807842f90c0808c2a6544b785ab51c4a151 Cr-Commit-Position: refs/heads/master@{#418330}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Renaming #

Total comments: 24

Patch Set 3 : Update tests and code review comments #

Total comments: 5

Patch Set 4 : update comments #

Patch Set 5 : make constructor more readable #

Total comments: 4

Patch Set 6 : POD to constructor #

Total comments: 4

Patch Set 7 : final fixes to Justin's comments #

Patch Set 8 : fix compile issues in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -18 lines) Patch
M components/offline_pages/client_policy_controller.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M components/offline_pages/client_policy_controller.cc View 1 2 3 chunks +31 lines, -18 lines 0 comments Download
M components/offline_pages/client_policy_controller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_client_policy.h View 1 2 3 4 5 6 2 chunks +76 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (16 generated)
chili
Hi! This CL isn't quite done yet, but want you guys to take a quick ...
4 years, 3 months ago (2016-08-31 21:14:57 UTC) #4
fgorski
mostly looks good. https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.cc#newcode46 components/offline_pages/client_policy_controller.cc:46: .SetUserRequested(true) I see a relative inconsistency ...
4 years, 3 months ago (2016-08-31 21:31:00 UTC) #5
romax
Can you please also update the code in OfflinePageModelImpl::IsUserRequestedPage with your changes? Also the builder ...
4 years, 3 months ago (2016-08-31 23:23:58 UTC) #9
chili
On 2016/08/31 23:23:58, romax wrote: > Can you please also update the code in OfflinePageModelImpl::IsUserRequestedPage ...
4 years, 3 months ago (2016-08-31 23:29:41 UTC) #12
Dmitry Titov
https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.h File components/offline_pages/client_policy_controller.h (right): https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.h#newcode37 components/offline_pages/client_policy_controller.h:37: bool IsUserRequested(const std::string& name_space) const; Naming - it is ...
4 years, 3 months ago (2016-09-01 00:06:12 UTC) #14
chili
Should I lump the 'change code to use new policy bits' here or would you ...
4 years, 3 months ago (2016-09-06 20:55:21 UTC) #15
fgorski
please update client_policy_controller tests as well. https://codereview.chromium.org/2289143005/diff/20001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/2289143005/diff/20001/components/offline_pages/client_policy_controller.cc#newcode20 components/offline_pages/client_policy_controller.cc:20: kBookmarkNamespace, should be ...
4 years, 3 months ago (2016-09-07 03:25:05 UTC) #16
chili
Thanks! :) https://codereview.chromium.org/2289143005/diff/20001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/2289143005/diff/20001/components/offline_pages/client_policy_controller.cc#newcode20 components/offline_pages/client_policy_controller.cc:20: kBookmarkNamespace, On 2016/09/07 03:25:04, fgorski wrote: > ...
4 years, 3 months ago (2016-09-12 17:39:01 UTC) #17
Dmitry Titov
lgtm with 2 notes: https://codereview.chromium.org/2289143005/diff/40001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/2289143005/diff/40001/components/offline_pages/offline_page_client_policy.h#newcode77 components/offline_pages/offline_page_client_policy.h:77: {false, true}}); could you add ...
4 years, 3 months ago (2016-09-12 17:43:34 UTC) #18
dewittj
I think leaving CCT as cleared with cache clearing is OK, but will loop in ...
4 years, 3 months ago (2016-09-12 18:06:35 UTC) #19
fgorski
lgtm
4 years, 3 months ago (2016-09-12 20:04:45 UTC) #20
chili
https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.h File components/offline_pages/client_policy_controller.h (right): https://codereview.chromium.org/2289143005/diff/1/components/offline_pages/client_policy_controller.h#newcode39 components/offline_pages/client_policy_controller.h:39: // Returns whether the policy for |name_space| is downloaded. ...
4 years, 3 months ago (2016-09-12 21:24:07 UTC) #21
dewittj
https://codereview.chromium.org/2289143005/diff/80001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/2289143005/diff/80001/components/offline_pages/offline_page_client_policy.h#newcode32 components/offline_pages/offline_page_client_policy.h:32: LifetimeType lifetime_type; I might also assign defaults here and ...
4 years, 3 months ago (2016-09-12 21:40:53 UTC) #22
chili
https://codereview.chromium.org/2289143005/diff/80001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/2289143005/diff/80001/components/offline_pages/offline_page_client_policy.h#newcode32 components/offline_pages/offline_page_client_policy.h:32: LifetimeType lifetime_type; On 2016/09/12 21:40:53, dewittj wrote: > I ...
4 years, 3 months ago (2016-09-13 00:36:10 UTC) #23
dewittj
lgtm! https://codereview.chromium.org/2289143005/diff/100001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/2289143005/diff/100001/components/offline_pages/offline_page_client_policy.h#newcode34 components/offline_pages/offline_page_client_policy.h:34: // The time after which the page expires. ...
4 years, 3 months ago (2016-09-13 16:56:36 UTC) #24
chili
Thanks! https://codereview.chromium.org/2289143005/diff/100001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/2289143005/diff/100001/components/offline_pages/offline_page_client_policy.h#newcode34 components/offline_pages/offline_page_client_policy.h:34: // The time after which the page expires. ...
4 years, 3 months ago (2016-09-13 17:47:55 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/2289143005/120001
4 years, 3 months ago (2016-09-13 17:48:30 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/68278) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-13 18:00:28 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/2289143005/140001
4 years, 3 months ago (2016-09-13 18:33:13 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-13 19:22:57 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 19:25:55 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c7ae4807842f90c0808c2a6544b785ab51c4a151
Cr-Commit-Position: refs/heads/master@{#418330}

Powered by Google App Engine
This is Rietveld 408576698