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

Issue 2835193005: Offline Pages - Policy cleanup (Closed)

Created:
3 years, 8 months ago by dewittj
Modified:
3 years, 8 months ago
Reviewers:
romax, chili
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Offline Pages - Policy cleanup This CL adds a client policy bit that controls whether namespaces are disabled when prefetching-related prefs are disabled. Also fixes an incorrect policy bit for the NTP articles namespace, it was set to be cleared on cache when it was in fact a user-requested data type. Added some diagnostic information to the policy controller tests. Paquete #fixit BUG=705082 Review-Url: https://codereview.chromium.org/2835193005 Cr-Commit-Position: refs/heads/master@{#467518} Committed: https://chromium.googlesource.com/chromium/src/+/d5b4d0051b79315b2084e758ca0f3b86043d729a

Patch Set 1 #

Patch Set 2 : add background loader offliner. #

Total comments: 4

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -19 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M components/offline_pages/core/client_policy_controller.h View 2 chunks +6 lines, -0 lines 0 comments Download
M components/offline_pages/core/client_policy_controller.cc View 4 chunks +27 lines, -2 lines 0 comments Download
M components/offline_pages/core/client_policy_controller_unittest.cc View 11 chunks +63 lines, -8 lines 0 comments Download
M components/offline_pages/core/offline_page_client_policy.h View 1 2 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 22 (16 generated)
dewittj
+chili for policy +romax for changing the caching policy of NTP long-press downloads.
3 years, 8 months ago (2017-04-25 18:38:25 UTC) #7
romax
lgtm with one typo. https://codereview.chromium.org/2835193005/diff/20001/components/offline_pages/core/client_policy_controller_unittest.cc File components/offline_pages/core/client_policy_controller_unittest.cc (right): https://codereview.chromium.org/2835193005/diff/20001/components/offline_pages/core/client_policy_controller_unittest.cc#newcode58 components/offline_pages/core/client_policy_controller_unittest.cc:58: EXPECT_EQ(expectation, result != cache.end()) Thanks ...
3 years, 8 months ago (2017-04-25 19:18:04 UTC) #8
dewittj
Thanks! https://codereview.chromium.org/2835193005/diff/20001/components/offline_pages/core/client_policy_controller_unittest.cc File components/offline_pages/core/client_policy_controller_unittest.cc (right): https://codereview.chromium.org/2835193005/diff/20001/components/offline_pages/core/client_policy_controller_unittest.cc#newcode58 components/offline_pages/core/client_policy_controller_unittest.cc:58: EXPECT_EQ(expectation, result != cache.end()) On 2017/04/25 19:18:04, romax ...
3 years, 8 months ago (2017-04-25 19:39:42 UTC) #12
chili
lgtm really like this!
3 years, 8 months ago (2017-04-26 22:04:52 UTC) #16
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/2835193005/40001
3 years, 8 months ago (2017-04-26 22:09:42 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 23:52:58 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d5b4d0051b79315b2084e758ca0f...

Powered by Google App Engine
This is Rietveld 408576698