diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/sync/sync_status_ui_helper.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sync/sync_status_ui_helper.cc b/chrome/browser/sync/sync_status_ui_helper.cc index 2c221cb..b642d3c 100644 --- a/chrome/browser/sync/sync_status_ui_helper.cc +++ b/chrome/browser/sync/sync_status_ui_helper.cc @@ -63,6 +63,10 @@ SyncStatusUIHelper::MessageType SyncStatusUIHelper::GetLabels( std::wstring* link_label) { MessageType result_type(SYNCED); + if (!service) { + return PRE_SYNCED; + } + if (service->HasSyncSetupCompleted()) { ProfileSyncService::Status status(service->QueryDetailedSyncStatus()); AuthErrorState auth_error(service->GetAuthErrorState()); |