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

Issue 2760063002: Add support to previews/ for Server LoFi and LitePages (Closed)

Created:
3 years, 9 months ago by RyanSturm
Modified:
3 years, 7 months ago
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support to previews/ for Server LoFi and LitePages This adds support for using the previews blacklist for LoFi and LitePages as well as adding histograms for LoFi and LitePages within the previews framework. BUG=703293 Review-Url: https://codereview.chromium.org/2760063002 Cr-Commit-Position: refs/heads/master@{#469800} Committed: https://chromium.googlesource.com/chromium/src/+/b24d2336dc516900281fc2034adaddc29769e3a5

Patch Set 1 #

Patch Set 2 : build fix #

Total comments: 8

Patch Set 3 : tbansal comments #

Patch Set 4 : rebase and previews_service_unittest.cc #

Total comments: 31

Patch Set 5 : tbansal comments #

Patch Set 6 : passing string into variadic StringPrintF #

Total comments: 2

Patch Set 7 : tbansal comment #

Total comments: 2

Patch Set 8 : Coverging LoFi types #

Total comments: 8

Patch Set 9 : rebase #

Total comments: 4

Patch Set 10 : tbansal comments #

Total comments: 4

Patch Set 11 : comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -121 lines) Patch
M chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/previews/previews_service.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -3 lines 0 comments Download
A chrome/browser/previews/previews_service_unittest.cc View 1 2 3 4 5 6 7 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M components/previews/core/previews_black_list.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/previews/core/previews_black_list.cc View 1 2 3 4 5 2 chunks +8 lines, -8 lines 0 comments Download
M components/previews/core/previews_decider.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -1 line 0 comments Download
M components/previews/core/previews_experiments.h View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -6 lines 0 comments Download
M components/previews/core/previews_experiments.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -3 lines 0 comments Download
M components/previews/core/previews_experiments_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M components/previews/core/previews_io_data.h View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -3 lines 0 comments Download
M components/previews/core/previews_io_data.cc View 1 2 3 4 5 6 7 8 9 5 chunks +34 lines, -28 lines 0 comments Download
M components/previews/core/previews_io_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +51 lines, -26 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -36 lines 0 comments Download

Messages

Total messages: 100 (82 generated)
RyanSturm
tbansal: PTAL
3 years, 9 months ago (2017-03-20 21:51:23 UTC) #10
tbansal1
https://codereview.chromium.org/2760063002/diff/20001/components/previews/core/previews_io_data.cc File components/previews/core/previews_io_data.cc (right): https://codereview.chromium.org/2760063002/diff/20001/components/previews/core/previews_io_data.cc#newcode33 components/previews/core/previews_io_data.cc:33: "Previews.EligibilityReason.LitePage", static_cast<int>(status), Maybe use histogram factory here to avoid ...
3 years, 9 months ago (2017-03-20 22:55:13 UTC) #11
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2760063002/diff/20001/components/previews/core/previews_io_data.cc File components/previews/core/previews_io_data.cc (right): https://codereview.chromium.org/2760063002/diff/20001/components/previews/core/previews_io_data.cc#newcode33 components/previews/core/previews_io_data.cc:33: "Previews.EligibilityReason.LitePage", static_cast<int>(status), On 2017/03/20 22:55:13, tbansal1 wrote: ...
3 years, 7 months ago (2017-05-02 20:08:12 UTC) #20
tbansal1
https://codereview.chromium.org/2760063002/diff/60001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2760063002/diff/60001/chrome/browser/previews/previews_service.cc#newcode37 chrome/browser/previews/previews_service.cc:37: // List remaining enum cases vs. default to catch ...
3 years, 7 months ago (2017-05-02 21:49:31 UTC) #23
RyanSturm
https://codereview.chromium.org/2760063002/diff/60001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2760063002/diff/60001/chrome/browser/previews/previews_service.cc#newcode37 chrome/browser/previews/previews_service.cc:37: // List remaining enum cases vs. default to catch ...
3 years, 7 months ago (2017-05-02 22:57:20 UTC) #26
tbansal1
lgtm % nit. https://codereview.chromium.org/2760063002/diff/100001/chrome/browser/previews/previews_service_unittest.cc File chrome/browser/previews/previews_service_unittest.cc (right): https://codereview.chromium.org/2760063002/diff/100001/chrome/browser/previews/previews_service_unittest.cc#newcode99 chrome/browser/previews/previews_service_unittest.cc:99: variations::testing::ClearAllVariationParams(); nit: This repeated line can ...
3 years, 7 months ago (2017-05-03 17:29:50 UTC) #33
RyanSturm
holte: PTAL @ histograms.xml https://codereview.chromium.org/2760063002/diff/100001/chrome/browser/previews/previews_service_unittest.cc File chrome/browser/previews/previews_service_unittest.cc (right): https://codereview.chromium.org/2760063002/diff/100001/chrome/browser/previews/previews_service_unittest.cc#newcode99 chrome/browser/previews/previews_service_unittest.cc:99: variations::testing::ClearAllVariationParams(); On 2017/05/03 17:29:49, tbansal1 ...
3 years, 7 months ago (2017-05-03 17:43:34 UTC) #37
Steven Holte
https://codereview.chromium.org/2760063002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2760063002/diff/120001/tools/metrics/histograms/histograms.xml#oldcode55402 tools/metrics/histograms/histograms.xml:55402: - User interactions with the previews LitePage &quot;Saved data&quot; ...
3 years, 7 months ago (2017-05-03 23:57:45 UTC) #40
Steven Holte
lgtm after another look https://codereview.chromium.org/2760063002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2760063002/diff/120001/tools/metrics/histograms/histograms.xml#oldcode55402 tools/metrics/histograms/histograms.xml:55402: - User interactions with the ...
3 years, 7 months ago (2017-05-04 00:00:34 UTC) #41
tbansal1
https://codereview.chromium.org/2760063002/diff/220001/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc File chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc (right): https://codereview.chromium.org/2760063002/diff/220001/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc#newcode196 chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc:196: bool ShouldAllowPreview( I can dig up but IIRC, the ...
3 years, 7 months ago (2017-05-05 20:34:39 UTC) #71
RyanSturm
https://codereview.chromium.org/2760063002/diff/220001/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc File chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc (right): https://codereview.chromium.org/2760063002/diff/220001/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc#newcode196 chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc:196: bool ShouldAllowPreview( On 2017/05/05 20:34:38, tbansal1 wrote: > I ...
3 years, 7 months ago (2017-05-05 20:51:35 UTC) #77
tbansal1
https://codereview.chromium.org/2760063002/diff/290001/components/previews/core/previews_decider.h File components/previews/core/previews_decider.h (right): https://codereview.chromium.org/2760063002/diff/290001/components/previews/core/previews_decider.h#newcode23 components/previews/core/previews_decider.h:23: // network quality before calling ShouldAllowPreview. |request| is the ...
3 years, 7 months ago (2017-05-05 21:31:31 UTC) #78
RyanSturm
mmenke: PTAL at c_r_d_h_d, thanks again! jianli: PTAL @ PreviewsDecider interface change in test. https://codereview.chromium.org/2760063002/diff/290001/components/previews/core/previews_decider.h ...
3 years, 7 months ago (2017-05-05 21:39:02 UTC) #86
tbansal1
still lgtm. Thanks for the changes.
3 years, 7 months ago (2017-05-05 21:48:57 UTC) #87
mmenke
c/b/l LGTM
3 years, 7 months ago (2017-05-05 22:14:44 UTC) #88
jianli
offline_pages lgtm
3 years, 7 months ago (2017-05-05 22:22:35 UTC) #90
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/2760063002/330001
3 years, 7 months ago (2017-05-05 23:28:28 UTC) #95
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 23:36:27 UTC) #100
Message was sent while issue was closed.
Committed patchset #11 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/b24d2336dc516900281fc2034ada...

Powered by Google App Engine
This is Rietveld 408576698