| Index: sync/internal_api/sync_manager_impl.cc
|
| diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
|
| index 2f74e2e9fe141df4f083220f2c4806a92f2ef495..81be2350e9a08c592a385169b20d31fc2519f257 100644
|
| --- a/sync/internal_api/sync_manager_impl.cc
|
| +++ b/sync/internal_api/sync_manager_impl.cc
|
| @@ -598,11 +598,14 @@ void SyncManagerImpl::UpdateCredentials(const SyncCredentials& credentials) {
|
| DCHECK(!credentials.sync_token.empty());
|
|
|
| observing_network_connectivity_changes_ = true;
|
| - if (!connection_manager_->set_auth_token(credentials.sync_token))
|
| + if (!connection_manager_->set_auth_token(credentials.sync_token,
|
| + credentials.sync_token_time))
|
| return; // Auth token is known to be invalid, so exit early.
|
|
|
| invalidator_->UpdateCredentials(credentials.email, credentials.sync_token);
|
| scheduler_->OnCredentialsUpdated();
|
| +
|
| + // TODO(zea): pass the credential age to the debug info event listener.
|
| }
|
|
|
| void SyncManagerImpl::UpdateEnabledTypes(ModelTypeSet enabled_types) {
|
|
|