| Index: chrome/browser/profile.cc
|
| diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
|
| index 318969488152e833bbb297d13cd179494bba6ed1..ecf606986327f4ec7c8a5f80294cdf282c14da8a 100644
|
| --- a/chrome/browser/profile.cc
|
| +++ b/chrome/browser/profile.cc
|
| @@ -276,6 +276,11 @@ URLRequestContextGetter* Profile::GetDefaultRequestContext() {
|
| return default_request_context_;
|
| }
|
|
|
| +bool Profile::IsSyncAccessible() {
|
| + ProfileSyncService* syncService = GetProfileSyncService();
|
| + return syncService && !syncService->IsManaged();
|
| +}
|
| +
|
| #if defined(OS_WIN)
|
| #include "chrome/browser/password_manager/password_store_win.h"
|
| #elif defined(OS_MACOSX)
|
| @@ -1630,9 +1635,6 @@ void ProfileImpl::StopCreateSessionServiceTimer() {
|
| }
|
|
|
| ProfileSyncService* ProfileImpl::GetProfileSyncService() {
|
| - if (!ProfileSyncService::IsSyncEnabled()) {
|
| - return NULL;
|
| - }
|
| if (!sync_service_.get())
|
| InitSyncService();
|
| return sync_service_.get();
|
|
|