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

Issue 288433002: G-services settings v3 implementation (Closed)

Created:
6 years, 7 months ago by fgorski
Modified:
6 years, 7 months ago
Reviewers:
Nicolas Zea, jianli
CC:
chromium-reviews
Visibility:
Public.

Description

G-services settings v3 implementation G-services settings v3 implementation: * Adding calculation of settings based on a diff from server * Adding calculation of settings digest * Changing internal representation of settings to string->string map in order to be able to calculate the digest properly. * Individual settings are calculated when needed. R=jianli@chromium.org,zea@chromium.org BUG=359256 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271600

Patch Set 1 #

Total comments: 22

Patch Set 2 : Addressing feedback from Jian Li #

Total comments: 10

Patch Set 3 : Adding tests for settings diff, addressing CR feedback" #

Total comments: 14

Patch Set 4 : Addressing final feedback #

Patch Set 5 : Fixing V3 protocol implementation and updating tests. #

Total comments: 12

Patch Set 6 : Addressing CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -285 lines) Patch
M google_apis/gcm/engine/checkin_request.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/gservices_settings.h View 1 2 3 2 chunks +18 lines, -25 lines 0 comments Download
M google_apis/gcm/engine/gservices_settings.cc View 1 2 3 4 5 3 chunks +262 lines, -119 lines 0 comments Download
M google_apis/gcm/engine/gservices_settings_unittest.cc View 1 2 3 4 3 chunks +224 lines, -103 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 2 3 6 chunks +15 lines, -16 lines 0 comments Download
M google_apis/gcm/gcm_client_impl_unittest.cc View 1 2 3 6 chunks +27 lines, -21 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
fgorski
PTAL I'll be adding some tests for settings diff calculation, but won't add more logic ...
6 years, 7 months ago (2014-05-12 22:55:05 UTC) #1
jianli
https://codereview.chromium.org/288433002/diff/1/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/1/google_apis/gcm/engine/gservices_settings.cc#newcode65 google_apis/gcm/engine/gservices_settings.cc:65: char hash[base::kSHA1Length]; Why not defining this as unsigned char ...
6 years, 7 months ago (2014-05-13 21:41:52 UTC) #2
fgorski
Feedback from Jian Li addressed. Also fixed the issue when the update from an empty ...
6 years, 7 months ago (2014-05-13 23:53:28 UTC) #3
jianli
https://codereview.chromium.org/288433002/diff/10001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/10001/google_apis/gcm/engine/gservices_settings.cc#newcode67 google_apis/gcm/engine/gservices_settings.cc:67: // This is emited as an error, but is ...
6 years, 7 months ago (2014-05-14 20:13:22 UTC) #4
fgorski
PTAL https://codereview.chromium.org/288433002/diff/10001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/10001/google_apis/gcm/engine/gservices_settings.cc#newcode67 google_apis/gcm/engine/gservices_settings.cc:67: // This is emited as an error, but ...
6 years, 7 months ago (2014-05-14 20:44:34 UTC) #5
jianli
lgtm https://codereview.chromium.org/288433002/diff/30001/google_apis/gcm/engine/gservices_settings_unittest.cc File google_apis/gcm/engine/gservices_settings_unittest.cc (right): https://codereview.chromium.org/288433002/diff/30001/google_apis/gcm/engine/gservices_settings_unittest.cc#newcode33 google_apis/gcm/engine/gservices_settings_unittest.cc:33: const std::map<std::string, std::string>& settings, use GServicesSettings::SettingsMap https://codereview.chromium.org/288433002/diff/30001/google_apis/gcm/engine/gservices_settings_unittest.cc#newcode35 google_apis/gcm/engine/gservices_settings_unittest.cc:35: ...
6 years, 7 months ago (2014-05-14 22:04:30 UTC) #6
Nicolas Zea
Mostly LG https://codereview.chromium.org/288433002/diff/30001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/30001/google_apis/gcm/engine/gservices_settings.cc#newcode32 google_apis/gcm/engine/gservices_settings.cc:32: const char kDeleteSettingPrefix[] = "delete_"; nit: comment ...
6 years, 7 months ago (2014-05-14 23:00:33 UTC) #7
Nicolas Zea
discussed offline, LGTM with DVLOG instead of LOG(ERROR)
6 years, 7 months ago (2014-05-14 23:58:48 UTC) #8
fgorski
Nicolas, after a long run of manual testing with debugger, I found out that the ...
6 years, 7 months ago (2014-05-16 20:48:47 UTC) #9
Nicolas Zea
https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc#newcode51 google_apis/gcm/engine/gservices_settings.cc:51: if (iter == settings.end()) It would be useful to ...
6 years, 7 months ago (2014-05-19 17:49:48 UTC) #10
jianli
https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc#newcode50 google_apis/gcm/engine/gservices_settings.cc:50: // Default settings are only present in the map ...
6 years, 7 months ago (2014-05-19 17:52:27 UTC) #11
fgorski
Feedback addressed. https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc File google_apis/gcm/engine/gservices_settings.cc (right): https://codereview.chromium.org/288433002/diff/90001/google_apis/gcm/engine/gservices_settings.cc#newcode50 google_apis/gcm/engine/gservices_settings.cc:50: // Default settings are only present in ...
6 years, 7 months ago (2014-05-19 20:25:39 UTC) #12
Nicolas Zea
lgtm
6 years, 7 months ago (2014-05-19 20:41:50 UTC) #13
jianli
lgtm
6 years, 7 months ago (2014-05-19 21:01:26 UTC) #14
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 7 months ago (2014-05-19 21:01:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/288433002/110001
6 years, 7 months ago (2014-05-19 21:02:18 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 22:33:38 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 03:45:56 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/17636)
6 years, 7 months ago (2014-05-20 03:45:57 UTC) #19
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 7 months ago (2014-05-20 04:35:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/288433002/110001
6 years, 7 months ago (2014-05-20 04:36:13 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 06:53:16 UTC) #22
Message was sent while issue was closed.
Change committed as 271600

Powered by Google App Engine
This is Rietveld 408576698