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

Issue 1934743003: Implementing client policy and controller. (Closed)

Created:
4 years, 7 months ago by romax
Modified:
4 years, 7 months ago
Reviewers:
fgorski
CC:
chromium-reviews, fgorski+watch_chromium.org, romax+watch_chromium.org, dewittj+watch_chromium.org, petewil+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

Implementing client policy and controller. Implemented OfflinePageClientPolicy and its sub class LifetimePolicy. They're applied to namespaces and are supposed to be used by storage manager to clear expired offline pages automatically. BUG=608080 Committed: https://crrev.com/1012d1379619ccd8975e6bc1a9941460d47bbe74 Cr-Commit-Position: refs/heads/master@{#391315}

Patch Set 1 #

Patch Set 2 : Fixing build errors. #

Total comments: 48

Patch Set 3 : Addressed comments. #

Total comments: 22

Patch Set 4 : Removed macro and singleton. Addressed comments. #

Total comments: 16

Patch Set 5 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -0 lines) Patch
M components/offline_pages/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
A components/offline_pages/client_policy_controller.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A components/offline_pages/client_policy_controller.cc View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A components/offline_pages/client_policy_controller_unittest.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_client_policy.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
romax
PTAL
4 years, 7 months ago (2016-04-29 23:35:15 UTC) #2
fgorski
This is very good and concise. https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/client_policy_controller.cc#newcode16 components/offline_pages/client_policy_controller.cc:16: OfflinePageClientPolicy TranslateToPolicy( fix ...
4 years, 7 months ago (2016-04-30 17:42:26 UTC) #3
dougarnett
https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/offline_page_client_policy.h File components/offline_pages/offline_page_client_policy.h (right): https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/offline_page_client_policy.h#newcode35 components/offline_pages/offline_page_client_policy.h:35: // The maximum number of pages allowd generated by ...
4 years, 7 months ago (2016-05-02 15:32:34 UTC) #4
romax
Addressed comments, will send update soon. https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/1934743003/diff/20001/components/offline_pages/client_policy_controller.cc#newcode16 components/offline_pages/client_policy_controller.cc:16: OfflinePageClientPolicy TranslateToPolicy( On ...
4 years, 7 months ago (2016-05-02 20:33:45 UTC) #5
romax
Uploaded changes, PTAL. TIA!
4 years, 7 months ago (2016-05-02 20:40:31 UTC) #6
fgorski
https://codereview.chromium.org/1934743003/diff/40001/components/offline_pages/client_policies.h File components/offline_pages/client_policies.h (right): https://codereview.chromium.org/1934743003/diff/40001/components/offline_pages/client_policies.h#newcode21 components/offline_pages/client_policies.h:21: #define CLIENT_POLICIES \ no let's have a static method ...
4 years, 7 months ago (2016-05-02 23:10:32 UTC) #7
romax
Addressed comments and removed singleton/macros. https://codereview.chromium.org/1934743003/diff/40001/components/offline_pages/client_policies.h File components/offline_pages/client_policies.h (right): https://codereview.chromium.org/1934743003/diff/40001/components/offline_pages/client_policies.h#newcode21 components/offline_pages/client_policies.h:21: #define CLIENT_POLICIES \ On ...
4 years, 7 months ago (2016-05-03 00:29:24 UTC) #8
fgorski
lgtm with nits https://codereview.chromium.org/1934743003/diff/60001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/1934743003/diff/60001/components/offline_pages/client_policy_controller.cc#newcode9 components/offline_pages/client_policy_controller.cc:9: #include "base/logging.h" nit: do you need ...
4 years, 7 months ago (2016-05-03 04:43:07 UTC) #9
romax
Addressed comments and currently running on try bot. Will commit once it shows all green. ...
4 years, 7 months ago (2016-05-03 17:42:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1934743003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1934743003/80001
4 years, 7 months ago (2016-05-03 18:51:06 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-03 18:54:58 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 18:55:51 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1012d1379619ccd8975e6bc1a9941460d47bbe74
Cr-Commit-Position: refs/heads/master@{#391315}

Powered by Google App Engine
This is Rietveld 408576698