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

Issue 2257533003: Adding a previews object, PreviewsDataSavings (Closed)

Created:
4 years, 4 months ago by RyanSturm
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, asvitkine+watch_chromium.org, droger+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding a previews object, PreviewsDataSavings This object hooks into existing data saver code to track savings based on host, data used, and original size of the data. BUG=615565 Committed: https://crrev.com/794e7d9b05188df4006282ae68f7b7596fda625d Cr-Commit-Position: refs/heads/master@{#417359}

Patch Set 1 #

Patch Set 2 : Changing histograms #

Patch Set 3 : moving histograms to another CL #

Patch Set 4 : updating dependent cl #

Total comments: 26

Patch Set 5 : bengr comments #

Patch Set 6 : fixing a comment #

Patch Set 7 : rebase and design change. #

Total comments: 6

Patch Set 8 : rebase & bengr comments #

Total comments: 2

Patch Set 9 : bengr comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -33 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
D components/data_reduction_proxy/core/common/data_saver_status.h View 1 2 3 4 5 6 1 chunk +0 lines, -19 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_savings_recorder.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M components/previews/BUILD.gn View 1 chunk +5 lines, -0 lines 0 comments Download
M components/previews/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A components/previews/previews_data_savings.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A components/previews/previews_data_savings.cc View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A components/previews/previews_data_savings_unittest.cc View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (32 generated)
RyanSturm
This depends on https://codereview.chromium.org/2249903004/ and https://codereview.chromium.org/2255603002/ (adding two depends on patchsets didn't seem possible)
4 years, 4 months ago (2016-08-17 21:34:39 UTC) #1
RyanSturm
bengr: PTAL @ *
4 years, 4 months ago (2016-08-19 22:31:17 UTC) #5
Not at Google. Contact bengr
Happened to see a data use/savings cl, so took a quick look. https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.h File components/previews/previews_data_savings.h ...
4 years, 3 months ago (2016-08-25 19:24:48 UTC) #9
RyanSturm
https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.h File components/previews/previews_data_savings.h (right): https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.h#newcode24 components/previews/previews_data_savings.h:24: class PreviewsDataSavings { On 2016/08/25 19:24:48, kundaji wrote: > ...
4 years, 3 months ago (2016-08-25 20:22:46 UTC) #10
bengr
Here are some random comments. https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.cc File components/previews/previews_data_savings.cc (right): https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.cc#newcode32 components/previews/previews_data_savings.cc:32: // Only record savings ...
4 years, 3 months ago (2016-08-25 23:04:19 UTC) #11
Not at Google. Contact bengr
https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.h File components/previews/previews_data_savings.h (right): https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.h#newcode24 components/previews/previews_data_savings.h:24: class PreviewsDataSavings { On 2016/08/25 20:22:45, RyanSturm wrote: > ...
4 years, 3 months ago (2016-08-26 00:36:10 UTC) #12
RyanSturm
bengr, kundaji: PTAL, thanks https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.cc File components/previews/previews_data_savings.cc (right): https://codereview.chromium.org/2257533003/diff/60001/components/previews/previews_data_savings.cc#newcode32 components/previews/previews_data_savings.cc:32: // Only record savings when ...
4 years, 3 months ago (2016-08-26 17:47:40 UTC) #19
bengr
https://codereview.chromium.org/2257533003/diff/140001/components/data_reduction_proxy/core/common/data_savings_recorder.h File components/data_reduction_proxy/core/common/data_savings_recorder.h (right): https://codereview.chromium.org/2257533003/diff/140001/components/data_reduction_proxy/core/common/data_savings_recorder.h#newcode22 components/data_reduction_proxy/core/common/data_savings_recorder.h:22: virtual void UpdateDataSavings(const std::string& data_usage_host, Should this only be ...
4 years, 3 months ago (2016-08-31 22:02:26 UTC) #26
RyanSturm
Bengr: ptal https://codereview.chromium.org/2257533003/diff/140001/components/data_reduction_proxy/core/common/data_savings_recorder.h File components/data_reduction_proxy/core/common/data_savings_recorder.h (right): https://codereview.chromium.org/2257533003/diff/140001/components/data_reduction_proxy/core/common/data_savings_recorder.h#newcode22 components/data_reduction_proxy/core/common/data_savings_recorder.h:22: virtual void UpdateDataSavings(const std::string& data_usage_host, On 2016/08/31 ...
4 years, 3 months ago (2016-09-02 01:17:52 UTC) #36
bengr
See last nit. lgtm otherwise. https://codereview.chromium.org/2257533003/diff/180001/components/data_reduction_proxy/core/common/data_savings_recorder.h File components/data_reduction_proxy/core/common/data_savings_recorder.h (right): https://codereview.chromium.org/2257533003/diff/180001/components/data_reduction_proxy/core/common/data_savings_recorder.h#newcode22 components/data_reduction_proxy/core/common/data_savings_recorder.h:22: // Returns true if ...
4 years, 3 months ago (2016-09-08 00:24:40 UTC) #37
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/2257533003/180001
4 years, 3 months ago (2016-09-08 17:53:25 UTC) #39
RyanSturm
thanks for the review. https://codereview.chromium.org/2257533003/diff/180001/components/data_reduction_proxy/core/common/data_savings_recorder.h File components/data_reduction_proxy/core/common/data_savings_recorder.h (right): https://codereview.chromium.org/2257533003/diff/180001/components/data_reduction_proxy/core/common/data_savings_recorder.h#newcode22 components/data_reduction_proxy/core/common/data_savings_recorder.h:22: // Returns true if data ...
4 years, 3 months ago (2016-09-08 18:04:55 UTC) #41
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/2257533003/200001
4 years, 3 months ago (2016-09-08 18:05:50 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years, 3 months ago (2016-09-08 19:13:40 UTC) #45
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 19:20:57 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/794e7d9b05188df4006282ae68f7b7596fda625d
Cr-Commit-Position: refs/heads/master@{#417359}

Powered by Google App Engine
This is Rietveld 408576698