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

Issue 618003002: [GCM] Handling connection events in GCMAccountTracker (Closed)

Created:
6 years, 2 months ago by fgorski
Modified:
6 years, 2 months ago
CC:
chromium-reviews, zea+watch_chromium.org, jianli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

This patch is: * Adding handling of connection events to the tracker * Adding a method sanitizing tokens (removing expired ones) * Adding relevant account tracker tests * Making account mapper aware of gcm driver being started * Making sure ShutdownHandler implementation is safe to call RemoveAppHandler (without causing a stack trace due to invalid iterator) * Making sure that account mapper does not count toward registered app handlers when deciding to stop GCM Driver * Updating FakeOAuth2TokenService to allow token request to be repeated. Based of patch: https://codereview.chromium.org/617003005/ BUG=374969 TBR=rogerta@chromium.org Committed: https://crrev.com/83afd876646fc45deb677780d16b615915cd56eb Cr-Commit-Position: refs/heads/master@{#299804}

Patch Set 1 #

Patch Set 2 : Adding tests for connection state. #

Patch Set 3 : Adding sanitize tokens, adding sequenced tasks runner, adding and updating tests #

Patch Set 4 : Fixing the root cause of the problem in tests and removing the sequenced task runner #

Patch Set 5 : Rebasing to Jian Li's patch and addressing unit tests failures #

Total comments: 1

Patch Set 6 : Fixing the self review commets #

Patch Set 7 : Rebased #

Patch Set 8 : Rebasing after jianli's patch made it #

Total comments: 20

Patch Set 9 : Addressing code review nits and issues (big loop rewritten) #

Patch Set 10 : Fixing compilation issue on Android #

Patch Set 11 : Fixing the test failing on a mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -176 lines) Patch
M chrome/browser/services/gcm/gcm_account_tracker.h View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -18 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker.cc View 1 2 3 4 5 6 7 8 9 chunks +76 lines, -47 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +168 lines, -71 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -26 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_account_mapper.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/gcm_account_mapper.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -5 lines 0 comments Download
M components/gcm_driver/gcm_account_mapper_unittest.cc View 1 2 3 4 5 6 11 chunks +10 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +15 lines, -3 lines 0 comments Download
M google_apis/gaia/fake_oauth2_token_service.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
fgorski
PTAL Roger, I have a small update in FakeOAuth2TokenService. Jian Li, the rest of the ...
6 years, 2 months ago (2014-10-03 18:03:32 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm fake_oauth2_token_service.cc
6 years, 2 months ago (2014-10-06 13:40:58 UTC) #3
fgorski
Nicolas, given that Jian Li is out this week. Could you take a look?
6 years, 2 months ago (2014-10-07 16:36:43 UTC) #5
Nicolas Zea
LGTM with some nits https://codereview.chromium.org/618003002/diff/140001/chrome/browser/services/gcm/gcm_account_tracker.cc File chrome/browser/services/gcm/gcm_account_tracker.cc (right): https://codereview.chromium.org/618003002/diff/140001/chrome/browser/services/gcm/gcm_account_tracker.cc#newcode202 chrome/browser/services/gcm/gcm_account_tracker.cc:202: ++iter; nit: Why not have ...
6 years, 2 months ago (2014-10-08 00:36:35 UTC) #6
fgorski
Nicolas, PTAL. I rewrote that loop with the iterator incremented inside to 2 loops. Please ...
6 years, 2 months ago (2014-10-08 18:04:28 UTC) #7
Nicolas Zea
lgtm
6 years, 2 months ago (2014-10-09 21:39:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618003002/160001
6 years, 2 months ago (2014-10-09 21:46:06 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/17083)
6 years, 2 months ago (2014-10-09 22:08:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618003002/470001
6 years, 2 months ago (2014-10-10 18:47:02 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/22700)
6 years, 2 months ago (2014-10-10 20:13:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618003002/470001
6 years, 2 months ago (2014-10-10 22:41:39 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/22787)
6 years, 2 months ago (2014-10-10 23:51:21 UTC) #20
fgorski
asvitkine@chromium.org: Please review changes in profile_chooser_controller_unittest.mm I am faking one of the services that requires ...
6 years, 2 months ago (2014-10-15 21:13:37 UTC) #22
Alexei Svitkine (slow)
lgtm
6 years, 2 months ago (2014-10-15 21:15:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618003002/670001
6 years, 2 months ago (2014-10-15 21:42:34 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:670001)
6 years, 2 months ago (2014-10-16 01:12:02 UTC) #26
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 01:12:51 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/83afd876646fc45deb677780d16b615915cd56eb
Cr-Commit-Position: refs/heads/master@{#299804}

Powered by Google App Engine
This is Rietveld 408576698