| Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| index f8ed702f07cef6cf95f8c65f4c539ddcdeace6d4..cb1def57e5511a147343dda60f70871b79377fb6 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/themes/theme_service.h"
|
| #include "chrome/browser/themes/theme_service_factory.h"
|
| #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
|
| @@ -339,7 +340,7 @@ void NTPResourceCache::CreateNewTabHTML() {
|
|
|
| // Don't initiate the sync related message passing with the page if the sync
|
| // code is not present.
|
| - if (profile_->GetProfileSyncService())
|
| + if (ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_))
|
| localized_strings.SetString("syncispresent", "true");
|
| else
|
| localized_strings.SetString("syncispresent", "false");
|
|
|