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

Issue 135303002: Adding a user list (to be consumed by GCM Client Implementation) (Closed)

Created:
6 years, 11 months ago by fgorski
Modified:
6 years, 11 months ago
Reviewers:
Nicolas Zea, jianli
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adding a user list (to be consumed by GCM Client Implementation) The goal of the list is to store mappings between usernames, serial numbers and delegates. Patch includes: * implementation of the user list * tests for the user list BUG=284553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245207

Patch Set 1 #

Total comments: 32

Patch Set 2 : Updated the code with CR feedback, applied more asynch model. #

Total comments: 34

Patch Set 3 : Updates based on CR #

Patch Set 4 : Addressing reminder of the CR feedback #

Total comments: 14

Patch Set 5 : Updated based on JianLi's comments. #

Total comments: 1

Patch Set 6 : Addressing comments #

Total comments: 1

Patch Set 7 : Fixing Win64 compilation issue and adding comments to test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+743 lines, -18 lines) Patch
M google_apis/gcm/engine/gcm_store.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/gcm_store.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl_unittest.cc View 1 3 chunks +15 lines, -10 lines 0 comments Download
A google_apis/gcm/engine/user_list.h View 1 2 3 4 1 chunk +102 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/user_list.cc View 1 2 3 4 1 chunk +197 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/user_list_unittest.cc View 1 2 3 4 5 6 1 chunk +370 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 2 chunks +17 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
fgorski
Please take a look at implementation of the User List that will store GCM Client ...
6 years, 11 months ago (2014-01-11 01:40:50 UTC) #1
jianli
https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc#newcode32 google_apis/gcm/engine/user_list.cc:32: : username(username), serial_number(serial_number), delegate(NULL) {} nit: try not to ...
6 years, 11 months ago (2014-01-13 19:19:55 UTC) #2
Nicolas Zea
https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc#newcode36 google_apis/gcm/engine/user_list.cc:36: UserList::UserList(GCMStore* gcm_store) : gcm_store_(gcm_store) {} initialize next_serial_number_ to 0 ...
6 years, 11 months ago (2014-01-13 19:26:06 UTC) #3
fgorski
PTAL. https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/1/google_apis/gcm/engine/user_list.cc#newcode32 google_apis/gcm/engine/user_list.cc:32: : username(username), serial_number(serial_number), delegate(NULL) {} On 2014/01/13 19:19:55, ...
6 years, 11 months ago (2014-01-14 22:25:42 UTC) #4
Nicolas Zea
https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/user_list.cc#newcode114 google_apis/gcm/engine/user_list.cc:114: int64 serial_number = next_serial_number_++; this needs to be pre-increment ...
6 years, 11 months ago (2014-01-14 23:56:41 UTC) #5
jianli
https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/gcm_store.h File google_apis/gcm/engine/gcm_store.h (right): https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/gcm_store.h#newcode32 google_apis/gcm/engine/gcm_store.h:32: struct GCM_EXPORT SerialNumberMappings { nit: probably simpler to name ...
6 years, 11 months ago (2014-01-15 01:07:09 UTC) #6
fgorski
Jian Li, I'll address your comments in next round. Nicolas, PTAL and advise regarding my ...
6 years, 11 months ago (2014-01-15 01:29:20 UTC) #7
fgorski
PTAL. https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/110001/google_apis/gcm/engine/user_list.cc#newcode193 google_apis/gcm/engine/user_list.cc:193: return NULL; On 2014/01/15 01:07:09, jianli wrote: > ...
6 years, 11 months ago (2014-01-15 20:42:44 UTC) #8
jianli
https://codereview.chromium.org/135303002/diff/360001/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/360001/google_apis/gcm/engine/user_list.cc#newcode62 google_apis/gcm/engine/user_list.cc:62: initialized_ = true; nit: it is a bit bizarre ...
6 years, 11 months ago (2014-01-15 22:43:37 UTC) #9
fgorski
Updated. https://codereview.chromium.org/135303002/diff/360001/google_apis/gcm/engine/user_list.cc File google_apis/gcm/engine/user_list.cc (right): https://codereview.chromium.org/135303002/diff/360001/google_apis/gcm/engine/user_list.cc#newcode62 google_apis/gcm/engine/user_list.cc:62: initialized_ = true; On 2014/01/15 22:43:37, jianli wrote: ...
6 years, 11 months ago (2014-01-15 23:22:49 UTC) #10
jianli
lgtm https://codereview.chromium.org/135303002/diff/470001/google_apis/gcm/engine/user_list_unittest.cc File google_apis/gcm/engine/user_list_unittest.cc (right): https://codereview.chromium.org/135303002/diff/470001/google_apis/gcm/engine/user_list_unittest.cc#newcode113 google_apis/gcm/engine/user_list_unittest.cc:113: // Creation of the temp_directory_ happens in setup, ...
6 years, 11 months ago (2014-01-15 23:29:55 UTC) #11
Nicolas Zea
LGTM https://codereview.chromium.org/135303002/diff/550001/google_apis/gcm/engine/user_list_unittest.cc File google_apis/gcm/engine/user_list_unittest.cc (right): https://codereview.chromium.org/135303002/diff/550001/google_apis/gcm/engine/user_list_unittest.cc#newcode142 google_apis/gcm/engine/user_list_unittest.cc:142: TEST_F(UserListTest, SetDelegateAndCheckSerialNumberAssignment) { nit: I find it useful ...
6 years, 11 months ago (2014-01-16 01:24:33 UTC) #12
fgorski
On 2014/01/16 01:24:33, Nicolas Zea wrote: > LGTM > > https://codereview.chromium.org/135303002/diff/550001/google_apis/gcm/engine/user_list_unittest.cc > File google_apis/gcm/engine/user_list_unittest.cc (right): ...
6 years, 11 months ago (2014-01-16 01:33:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/135303002/550001
6 years, 11 months ago (2014-01-16 02:10:07 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247052
6 years, 11 months ago (2014-01-16 02:50:44 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/135303002/550001
6 years, 11 months ago (2014-01-16 03:57:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/135303002/790002
6 years, 11 months ago (2014-01-16 04:54:58 UTC) #17
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 16:05:38 UTC) #18
Message was sent while issue was closed.
Change committed as 245207

Powered by Google App Engine
This is Rietveld 408576698