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

Issue 631343002: [GCM] Fetching OAuth2 tokens periodically in account tracker (Closed)

Created:
6 years, 2 months ago by fgorski
Modified:
6 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mapper-in-driver
Project:
chromium
Visibility:
Public.

Description

[GCM] Fetching OAuth2 tokens periodically in account tracker BUG=374969 R=zea@chromium.org Committed: https://crrev.com/ede4117a85d34a1c117169d538b297020e69de87 Cr-Commit-Position: refs/heads/master@{#303340}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removing dependency on pref store #

Patch Set 3 : Adding tests and removing pref related code from tests #

Total comments: 15

Patch Set 4 : Fixing CR comments #

Patch Set 5 : Ignoring result of write in setlasttokenfetchtime to fix sync_integration_tests #

Total comments: 13

Patch Set 6 : Fixes based on CR feedback #

Total comments: 2

Patch Set 7 : Cleaning up last CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -25 lines) Patch
M chrome/browser/services/gcm/gcm_account_tracker.h View 1 2 3 4 5 6 4 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker.cc View 1 2 3 4 5 6 10 chunks +72 lines, -18 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker_unittest.cc View 1 2 3 4 5 8 chunks +87 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 14 (2 generated)
Nicolas Zea
Does this patch need to be diffed from the other? https://codereview.chromium.org/631343002/diff/1/chrome/browser/services/gcm/gcm_account_tracker.cc File chrome/browser/services/gcm/gcm_account_tracker.cc (right): https://codereview.chromium.org/631343002/diff/1/chrome/browser/services/gcm/gcm_account_tracker.cc#newcode48 ...
6 years, 2 months ago (2014-10-08 00:45:29 UTC) #1
fgorski
Nicolas, please take a look. I addressed the initial comments and added some tests. https://codereview.chromium.org/631343002/diff/1/chrome/browser/services/gcm/gcm_account_tracker.cc ...
6 years, 1 month ago (2014-11-06 01:16:14 UTC) #2
Nicolas Zea
https://codereview.chromium.org/631343002/diff/40001/chrome/browser/services/gcm/gcm_account_tracker.cc File chrome/browser/services/gcm/gcm_account_tracker.cc (right): https://codereview.chromium.org/631343002/diff/40001/chrome/browser/services/gcm/gcm_account_tracker.cc#newcode172 chrome/browser/services/gcm/gcm_account_tracker.cc:172: SanitizeTokens(); Why do we ignore the return value now ...
6 years, 1 month ago (2014-11-06 21:43:17 UTC) #3
fgorski
Fixed code review comments. Nicolas, there is 7 tests failing in sync integration tests. I ...
6 years, 1 month ago (2014-11-07 01:42:13 UTC) #4
Nicolas Zea
Mostly LG, just some cleanup comments. https://codereview.chromium.org/631343002/diff/40001/chrome/browser/services/gcm/gcm_account_tracker.h File chrome/browser/services/gcm/gcm_account_tracker.h (right): https://codereview.chromium.org/631343002/diff/40001/chrome/browser/services/gcm/gcm_account_tracker.h#newcode30 chrome/browser/services/gcm/gcm_account_tracker.h:30: // still logged ...
6 years, 1 month ago (2014-11-07 22:19:25 UTC) #6
fgorski
PTAL https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.cc File chrome/browser/services/gcm/gcm_account_tracker.cc (right): https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.cc#newcode249 chrome/browser/services/gcm/gcm_account_tracker.cc:249: if (GetTimeToNextTokenFetching() == base::TimeDelta()) On 2014/11/07 22:19:25, Nicolas ...
6 years, 1 month ago (2014-11-07 22:57:03 UTC) #7
Nicolas Zea
Makes more sense now, thanks! LGTM with a couple comments. https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.h File chrome/browser/services/gcm/gcm_account_tracker.h (right): https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.h#newcode156 ...
6 years, 1 month ago (2014-11-07 23:03:23 UTC) #8
fgorski
Updated. Flipping the CQ https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.h File chrome/browser/services/gcm/gcm_account_tracker.h (right): https://codereview.chromium.org/631343002/diff/100001/chrome/browser/services/gcm/gcm_account_tracker.h#newcode156 chrome/browser/services/gcm/gcm_account_tracker.h:156: base::WeakPtrFactory<GCMAccountTracker> reporting_weak_ptr_factory_; On 2014/11/07 23:03:23, ...
6 years, 1 month ago (2014-11-07 23:29:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631343002/140001
6 years, 1 month ago (2014-11-07 23:30:19 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years, 1 month ago (2014-11-08 00:39:00 UTC) #12
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/ede4117a85d34a1c117169d538b297020e69de87 Cr-Commit-Position: refs/heads/master@{#303340}
6 years, 1 month ago (2014-11-08 00:39:40 UTC) #13
matthewyuan
6 years, 1 month ago (2014-11-08 22:29:40 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:140001) has been created in
https://codereview.chromium.org/710903002/ by matthewyuan@chromium.org.

The reason for reverting is: Reverting since it's causing a crash on canary..

Powered by Google App Engine
This is Rietveld 408576698