Chromium Code Reviews| Index: chrome/browser/sync/profile_sync_service.cc |
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc |
| index 990b1ad255ab0e182093b6a290da5c2961b2085c..710fb757315f96d0b9ed9466ba5c5bc6e3c52388 100644 |
| --- a/chrome/browser/sync/profile_sync_service.cc |
| +++ b/chrome/browser/sync/profile_sync_service.cc |
| @@ -279,13 +279,11 @@ void ProfileSyncService::TryStart() { |
| if (!IsSyncEnabledAndLoggedIn()) |
| return; |
| - // On auto_start platforms (like ChromeOS) we don't start sync until tokens |
| - // are loaded, because the user can be "signed in" on those platforms long |
| - // before the tokens get loaded, and we don't want to generate spurious |
| - // auth errors. |
| - if (!IsOAuthRefreshTokenAvailable() && !(!auto_start_enabled_)) { |
| + // Don't start sync until tokens are loaded, because the user can be |
| + // "signed in" long before the tokens get loaded, and we don't want to |
| + // generate spurious auth errors. |
| + if (!IsOAuthRefreshTokenAvailable()) |
|
Roger Tawa OOO till Jul 10th
2013/11/13 20:23:10
I modified this condition as we discussed over ema
|
| return; |
| - } |
| // If we got here then tokens are loaded and user logged in and sync is |
| // enabled. If OAuth refresh token is not available then something is wrong. |