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

Issue 1404583004: Support gzip-compressed seed data from the variations server. (Closed)

Created:
5 years, 2 months ago by veranika
Modified:
5 years, 2 months ago
CC:
chromium-reviews, 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 gzip-compressed seed data from the variations server. Firstly, the client asks for gzip-compressed data by adding "gzip" to A-IM HTTP request header. Secondly, if "gzip" is present in IM HTTP response header, the client uncompresses data. Gzip compression could be used in combination with delta compression. A-IM and IM headers are defined in RFC 3229: http://tools.ietf.org/html/rfc3229#page-32 This CL re-adds components/variations/service tests to components_unittests. BUG=543271 Committed: https://crrev.com/f6acefe76a605a6fc17714306919c56ab3b2e2af Cr-Commit-Position: refs/heads/master@{#354788}

Patch Set 1 #

Patch Set 2 : Fix signed-unsigned comparison issue #

Total comments: 14

Patch Set 3 : Move IM header logic into a separate function; check empty seed data #

Total comments: 8

Patch Set 4 : Resolved comments #

Total comments: 16

Patch Set 5 : Resolve comments #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -38 lines) Patch
M components/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/variations/service/variations_service.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M components/variations/service/variations_service.cc View 1 2 3 4 6 chunks +71 lines, -5 lines 0 comments Download
M components/variations/service/variations_service_unittest.cc View 1 2 3 12 chunks +95 lines, -17 lines 0 comments Download
M components/variations/variations_seed_store.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M components/variations/variations_seed_store.cc View 1 2 3 4 5 6 chunks +40 lines, -7 lines 0 comments Download
M components/variations/variations_seed_store_unittest.cc View 1 2 5 chunks +38 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
veranika
Hi, Cait, could you please review the change in components/BUILD.gn? Alexei, could you please review ...
5 years, 2 months ago (2015-10-15 00:11:14 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service.cc#newcode675 components/variations/service/variations_service.cc:675: } Can you make a new helper for this ...
5 years, 2 months ago (2015-10-15 15:50:44 UTC) #3
Cait (Slow)
components.gn lgtm
5 years, 2 months ago (2015-10-15 17:35:45 UTC) #4
veranika
PTAL https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service.cc#newcode675 components/variations/service/variations_service.cc:675: } On 2015/10/15 15:50:43, Alexei Svitkine wrote: > ...
5 years, 2 months ago (2015-10-15 20:02:57 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service_unittest.cc File components/variations/service/variations_service_unittest.cc (right): https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service_unittest.cc#newcode218 components/variations/service/variations_service_unittest.cc:218: const std::string* header = NULL) { On 2015/10/15 20:02:57, ...
5 years, 2 months ago (2015-10-15 20:30:26 UTC) #6
veranika
Comments are resolved, PTAL https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service_unittest.cc File components/variations/service/variations_service_unittest.cc (right): https://codereview.chromium.org/1404583004/diff/20001/components/variations/service/variations_service_unittest.cc#newcode218 components/variations/service/variations_service_unittest.cc:218: const std::string* header = NULL) ...
5 years, 2 months ago (2015-10-15 22:10:38 UTC) #7
Alexei Svitkine (slow)
Thanks, almost there - probably the last round of comments. :) https://codereview.chromium.org/1404583004/diff/60001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): ...
5 years, 2 months ago (2015-10-16 15:16:44 UTC) #8
veranika
https://codereview.chromium.org/1404583004/diff/60001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): https://codereview.chromium.org/1404583004/diff/60001/components/variations/service/variations_service.cc#newcode221 components/variations/service/variations_service.cc:221: const net::HttpResponseHeaders* headers, const base::StringPiece& name) { On 2015/10/16 ...
5 years, 2 months ago (2015-10-16 21:01:00 UTC) #9
Alexei Svitkine (slow)
LGTM % remaining comments https://codereview.chromium.org/1404583004/diff/60001/components/variations/variations_seed_store.cc File components/variations/variations_seed_store.cc (right): https://codereview.chromium.org/1404583004/diff/60001/components/variations/variations_seed_store.cc#newcode205 components/variations/variations_seed_store.cc:205: RecordSeedStoreHistogram(VARIATIONS_SEED_STORE_FAILED_EMPTY); On 2015/10/16 21:01:00, veranika ...
5 years, 2 months ago (2015-10-16 21:10:36 UTC) #10
veranika
https://codereview.chromium.org/1404583004/diff/60001/components/variations/variations_seed_store.cc File components/variations/variations_seed_store.cc (right): https://codereview.chromium.org/1404583004/diff/60001/components/variations/variations_seed_store.cc#newcode205 components/variations/variations_seed_store.cc:205: RecordSeedStoreHistogram(VARIATIONS_SEED_STORE_FAILED_EMPTY); On 2015/10/16 21:10:36, Alexei Svitkine wrote: > On ...
5 years, 2 months ago (2015-10-16 21:42:59 UTC) #11
Alexei Svitkine (slow)
(Also, please mention in the CL description about re-adding the VariationsService tests to the BUILD ...
5 years, 2 months ago (2015-10-16 21:47:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404583004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404583004/100001
5 years, 2 months ago (2015-10-19 15:28:57 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-19 16:38:04 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 16:38:59 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f6acefe76a605a6fc17714306919c56ab3b2e2af
Cr-Commit-Position: refs/heads/master@{#354788}

Powered by Google App Engine
This is Rietveld 408576698