Chromium Code Reviews| Index: chrome/browser/web_resource/web_resource_service.cc |
| =================================================================== |
| --- chrome/browser/web_resource/web_resource_service.cc (revision 68772) |
| +++ chrome/browser/web_resource/web_resource_service.cc (working copy) |
| @@ -519,9 +519,10 @@ |
| } |
| bool promo_options = |
| - sync_ui_util::GetStatus( |
| - profile->GetProfileSyncService()) == sync_ui_util::SYNCED || |
| - has_extensions; |
| + (profile->HasProfileSyncService() && |
| + sync_ui_util::GetStatus( |
| + profile->GetProfileSyncService()) == sync_ui_util::SYNCED) || |
| + has_extensions; |
|
stevenjb
2010/12/10 17:40:47
We should add a comment here that mentions that Ha
|
| return !promo_closed && |
| promo_options && |