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

Issue 10828108: [sync] Add a polling mechanism to CredentialCacheService for on-the-fly sign in / sign out / reconf… (Closed)

Created:
8 years, 4 months ago by Raghu Simha
Modified:
8 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

[sync] Add a polling mechanism to CredentialCacheService for on-the-fly sign in / sign out / reconfigure detection With sync credential caching on Win 8, if Metro and Desktop are both running at the same time, and the user signs in / signs out / reconfigures sync in one mode, the other mode gets updated only after restart. This patch implements a polling mechanism to enable first-time auto-sign-in, first time auto-sign-out, and sync setting / credential reconfigurations without the need for browser restart. BUG=139200 TEST=Launch clean Desktop and Metro chrome, sign in / sign out / reconfigure one mode, watch for a minute and the other mode should catch up Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150001

Patch Set 1 : "" #

Patch Set 2 : Rebase #

Total comments: 13

Patch Set 3 : CR Feedback + ensure that there can be at most one future read scheduled. #

Patch Set 4 : Add last_updated_time field to credential cache #

Total comments: 10

Patch Set 5 : More CR Feedback + minor code reuse. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -77 lines) Patch
M chrome/browser/sync/credential_cache_service_factory_win.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/credential_cache_service_win.h View 1 2 3 4 5 chunks +78 lines, -12 lines 0 comments Download
M chrome/browser/sync/credential_cache_service_win.cc View 1 2 3 4 16 chunks +249 lines, -65 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Raghu Simha
Drew, please review. Thanks.
8 years, 4 months ago (2012-08-01 05:42:26 UTC) #1
Andrew T Wilson (Slow)
http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc File chrome/browser/sync/credential_cache_service_win.cc (right): http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc#newcode260 chrome/browser/sync/credential_cache_service_win.cc:260: return !sync_prefs_.IsManaged() && !sync_prefs_.IsStartSuppressed(); Should we document why we ...
8 years, 4 months ago (2012-08-03 20:39:56 UTC) #2
Raghu Simha
Drew, PTAL. http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc File chrome/browser/sync/credential_cache_service_win.cc (right): http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc#newcode260 chrome/browser/sync/credential_cache_service_win.cc:260: return !sync_prefs_.IsManaged() && !sync_prefs_.IsStartSuppressed(); On 2012/08/03 20:39:56, ...
8 years, 4 months ago (2012-08-03 21:57:34 UTC) #3
Raghu Simha
http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc File chrome/browser/sync/credential_cache_service_win.cc (right): http://codereview.chromium.org/10828108/diff/10002/chrome/browser/sync/credential_cache_service_win.cc#newcode507 chrome/browser/sync/credential_cache_service_win.cc:507: service->DisableForUser(); On 2012/08/03 20:39:56, Andrew T Wilson wrote: > ...
8 years, 4 months ago (2012-08-03 22:12:52 UTC) #4
Raghu Simha
I just realized that if we sign in to both modes and exit, then open ...
8 years, 4 months ago (2012-08-03 23:16:19 UTC) #5
Andrew T Wilson (Slow)
Mostly looks good - just want to understand how we handle logging out then logging ...
8 years, 4 months ago (2012-08-03 23:33:24 UTC) #6
Raghu Simha
Thanks for the review. PTAL. http://codereview.chromium.org/10828108/diff/4013/chrome/browser/sync/credential_cache_service_win.cc File chrome/browser/sync/credential_cache_service_win.cc (right): http://codereview.chromium.org/10828108/diff/4013/chrome/browser/sync/credential_cache_service_win.cc#newcode40 chrome/browser/sync/credential_cache_service_win.cc:40: const int kCredentialCachePollIntervalSecs = ...
8 years, 4 months ago (2012-08-04 00:18:02 UTC) #7
Andrew T Wilson (Slow)
OK, LGTM given your description of the desired behavior (logging out of one profile disables ...
8 years, 4 months ago (2012-08-04 01:25:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsimha@chromium.org/10828108/1010
8 years, 4 months ago (2012-08-04 01:28:28 UTC) #9
commit-bot: I haz the power
8 years, 4 months ago (2012-08-04 01:43:43 UTC) #10
Try job failure for 10828108-1010 (retry) on win_rel for step "runhooks"
(clobber build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698