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

Issue 1200233005: Support delta-compressed variations server responses. (Closed)

Created:
5 years, 6 months ago by Alexei Svitkine (slow)
Modified:
5 years, 4 months ago
Reviewers:
rkaplow
CC:
asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support delta-compressed variations server responses. Makes the client send the "A-IM: x-bm" header to the server to specify that it supports deltas in x-bm format and then makes it process such deltas when received from the server (when the response has the "IM: x-bm" header). If a delta encoded response fails to apply, tracks the failure mode in the existing store seed histogram and triggers a re-fetch of the full response. Also, changes the "If-Match" header sent that specifies the seed SN to instead be "If-None-Match" to correctly match the semantics. (The server now supports both.) BUG=514699 Committed: https://crrev.com/b24f45595e1f29fd3ff04ea0c53ef14785ce9289 Cr-Commit-Position: refs/heads/master@{#342273}

Patch Set 1 : #

Patch Set 2 : Rebase. #

Total comments: 13

Patch Set 3 : Added a test and a couple histograms. #

Patch Set 4 : Address comments and rebase. #

Patch Set 5 : Fix compile after rebase and expand country test. #

Patch Set 6 : Fixing missing return in !is_compressed case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -50 lines) Patch
M chrome/browser/metrics/variations/variations_seed_store.h View 1 2 3 4 chunks +38 lines, -8 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store.cc View 1 2 3 4 5 11 chunks +125 lines, -11 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store_unittest.cc View 1 2 3 4 4 chunks +69 lines, -3 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 7 chunks +45 lines, -12 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service_unittest.cc View 1 2 4 chunks +27 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (32 generated)
Alexei Svitkine (slow)
Rob, PTAL. Feel free to take your time on this, since it's not yet urgent. ...
5 years, 4 months ago (2015-08-03 21:42:21 UTC) #24
Alexei Svitkine (slow)
Added an extra test and a couple more histograms for us to measure the benefits ...
5 years, 4 months ago (2015-08-04 21:50:19 UTC) #25
rkaplow
https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode87 chrome/browser/metrics/variations/variations_seed_store.cc:87: VARIATIONS_SEED_STORE_DELTA_COUNT, DELTA_COUNT is a bit unlike the rest (not ...
5 years, 4 months ago (2015-08-04 22:37:05 UTC) #26
Alexei Svitkine (slow)
Thanks, comments addressed. https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode87 chrome/browser/metrics/variations/variations_seed_store.cc:87: VARIATIONS_SEED_STORE_DELTA_COUNT, On 2015/08/04 22:37:05, rkaplow wrote: ...
5 years, 4 months ago (2015-08-05 15:46:15 UTC) #27
rkaplow
lgtm https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/1200233005/diff/460001/chrome/browser/metrics/variations/variations_seed_store.h#newcode38 chrome/browser/metrics/variations/variations_seed_store.h:38: // compressed and attempts to decode it first ...
5 years, 4 months ago (2015-08-05 18:01:56 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200233005/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1200233005/500001
5 years, 4 months ago (2015-08-06 14:49:19 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_10.10_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_10.10_rel_ng/builds/2669)
5 years, 4 months ago (2015-08-06 15:02:39 UTC) #32
Alexei Svitkine (slow)
Uploaded a new patchset with a few fixes: - Fixed compile following rebase and also ...
5 years, 4 months ago (2015-08-06 19:39:40 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200233005/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1200233005/560001
5 years, 4 months ago (2015-08-06 19:40:16 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89922)
5 years, 4 months ago (2015-08-06 20:27:41 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200233005/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1200233005/560001
5 years, 4 months ago (2015-08-06 20:57:44 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89961)
5 years, 4 months ago (2015-08-06 22:01:56 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200233005/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1200233005/560001
5 years, 4 months ago (2015-08-07 02:17:07 UTC) #45
commit-bot: I haz the power
Committed patchset #6 (id:560001)
5 years, 4 months ago (2015-08-07 02:57:37 UTC) #46
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 02:58:22 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b24f45595e1f29fd3ff04ea0c53ef14785ce9289
Cr-Commit-Position: refs/heads/master@{#342273}

Powered by Google App Engine
This is Rietveld 408576698