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

Issue 1246523003: [Sync] Finch Experiment : Enable compression between sync client and server (Closed)

Created:
5 years, 5 months ago by Gang Wu
Modified:
5 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, asvitkine+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable compress HTTP call's content between sync client and sync server. BUG=509728 Committed: https://crrev.com/fbf1a591aa9653333a748764c1465344b7782fc8 Cr-Commit-Position: refs/heads/master@{#342213}

Patch Set 1 : #

Patch Set 2 : add tests #

Patch Set 3 : merge conflict #

Patch Set 4 : add test case #

Patch Set 5 : fix integration tests #

Patch Set 6 : fix dependent and test issue #

Patch Set 7 : update the name to make it easier to be understand #

Total comments: 6

Patch Set 8 : use metrics::Gzip* function instead #

Patch Set 9 : update build.gn and gyp files #

Patch Set 10 : revert metrics::Gzip* to own Gzip function due to cycle dependency #

Total comments: 26

Patch Set 11 : update base on comments #

Patch Set 12 : fix compile warning #

Total comments: 18

Patch Set 13 : separate gzip and ungzip functions #

Patch Set 14 : update build.gn file #

Total comments: 12

Patch Set 15 : update UMA name #

Total comments: 8

Patch Set 16 : update UMA names #

Patch Set 17 : merge conlict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -2 lines) Patch
M sync/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/http_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +136 lines, -2 lines 0 comments Download
M sync/internal_api/http_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +157 lines, -0 lines 0 comments Download
M sync/tools/testserver/sync_testserver.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_android.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_chromeos.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_ios.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_mac.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_win.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (23 generated)
Gang Wu
Hi Nicolas/Alexei, Please take a look. Alexei, Please review both histogram.xml and testing/variations/*.
5 years, 5 months ago (2015-07-24 23:37:40 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc#newcode47 sync/internal_api/http_bridge.cc:47: bool GZipCompress(std::string source, std::string* dest) { FYI: We have ...
5 years, 5 months ago (2015-07-25 15:50:36 UTC) #11
Gang Wu
https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc#newcode47 sync/internal_api/http_bridge.cc:47: bool GZipCompress(std::string source, std::string* dest) { On 2015/07/25 15:50:36, ...
5 years, 4 months ago (2015-07-27 22:35:06 UTC) #14
Nicolas Zea
On 2015/07/27 22:35:06, Gang Wu wrote: > https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc > File sync/internal_api/http_bridge.cc (right): > > https://codereview.chromium.org/1246523003/diff/280001/sync/internal_api/http_bridge.cc#newcode47 ...
5 years, 4 months ago (2015-07-28 00:09:00 UTC) #15
Nicolas Zea
https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/http_bridge.cc#newcode76 sync/internal_api/http_bridge.cc:76: void RecordSyncContentLengthHistograms(int64 this_content_length, nit: I think these variables could ...
5 years, 4 months ago (2015-07-28 00:27:19 UTC) #16
Alexei Svitkine (slow)
If we go with the TODO route for now for the duplicated code, I'd at ...
5 years, 4 months ago (2015-07-28 15:20:18 UTC) #17
Gang Wu
updated, please take a look. https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/http_bridge.cc#newcode76 sync/internal_api/http_bridge.cc:76: void RecordSyncContentLengthHistograms(int64 this_content_length, On ...
5 years, 4 months ago (2015-07-29 21:09:16 UTC) #24
Nicolas Zea
https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/public/http_bridge.h File sync/internal_api/public/http_bridge.h (right): https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/public/http_bridge.h#newcode25 sync/internal_api/public/http_bridge.h:25: #include "third_party/zlib/zlib.h" On 2015/07/29 21:09:16, Gang Wu wrote: > ...
5 years, 4 months ago (2015-07-30 19:59:44 UTC) #26
Gang Wu
updated base on comments https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/public/http_bridge.h File sync/internal_api/public/http_bridge.h (right): https://codereview.chromium.org/1246523003/diff/380001/sync/internal_api/public/http_bridge.h#newcode25 sync/internal_api/public/http_bridge.h:25: #include "third_party/zlib/zlib.h" On 2015/07/30 19:59:44, ...
5 years, 4 months ago (2015-07-31 00:39:45 UTC) #27
Alexei Svitkine (slow)
Looks good, just a few more suggestions. https://codereview.chromium.org/1246523003/diff/580001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/580001/sync/internal_api/http_bridge.cc#newcode43 sync/internal_api/http_bridge.cc:43: return group_name ...
5 years, 4 months ago (2015-08-03 18:12:30 UTC) #29
Nicolas Zea
LGTM with some nits https://codereview.chromium.org/1246523003/diff/620001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/620001/sync/internal_api/http_bridge.cc#newcode66 sync/internal_api/http_bridge.cc:66: // TODO(gangwu): crbug.com/515695. The following ...
5 years, 4 months ago (2015-08-03 20:14:01 UTC) #30
Nicolas Zea
Also, is the plan to add the kitchen sync tests separately?
5 years, 4 months ago (2015-08-03 20:14:54 UTC) #31
Gang Wu
update UMA names and typos https://codereview.chromium.org/1246523003/diff/580001/sync/internal_api/http_bridge.cc File sync/internal_api/http_bridge.cc (right): https://codereview.chromium.org/1246523003/diff/580001/sync/internal_api/http_bridge.cc#newcode43 sync/internal_api/http_bridge.cc:43: return group_name == "Enabled"; ...
5 years, 4 months ago (2015-08-04 22:14:00 UTC) #34
Gang Wu
On 2015/08/03 20:14:54, Nicolas Zea wrote: > Also, is the plan to add the kitchen ...
5 years, 4 months ago (2015-08-04 22:14:39 UTC) #35
Alexei Svitkine (slow)
lgtm
5 years, 4 months ago (2015-08-05 15:19:32 UTC) #36
Alexei Svitkine (slow)
Nicolas, WDYT of making compression_utils its own component? Given that it would have very lightweight ...
5 years, 4 months ago (2015-08-05 20:02:11 UTC) #37
Nicolas Zea
On 2015/08/05 20:02:11, Alexei Svitkine wrote: > Nicolas, WDYT of making compression_utils its own component? ...
5 years, 4 months ago (2015-08-05 23:39:15 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246523003/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246523003/700001
5 years, 4 months ago (2015-08-06 22:09:03 UTC) #41
commit-bot: I haz the power
Committed patchset #17 (id:700001)
5 years, 4 months ago (2015-08-06 22:15:50 UTC) #42
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 22:16:33 UTC) #43
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/fbf1a591aa9653333a748764c1465344b7782fc8
Cr-Commit-Position: refs/heads/master@{#342213}

Powered by Google App Engine
This is Rietveld 408576698