• rsimha@chromium.org's avatar
    [sync] Add a polling mechanism to CredentialCacheService for on-the-fly sign... · 20c8a48e
    rsimha@chromium.org authored
    [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
    
    Review URL: https://chromiumcodereview.appspot.com/10828108
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150001 0039d316-1c4b-4281-b951-d872f2087c98
    20c8a48e
profile_sync_service.h 35 KB