| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 8 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" | 8 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
| 9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 10 #include "chrome/browser/history/history_service.h" | 10 #include "chrome/browser/history/history_service.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "chrome/browser/extensions/extension_sync_service.h" | 73 #include "chrome/browser/extensions/extension_sync_service.h" |
| 74 #endif | 74 #endif |
| 75 | 75 |
| 76 #if defined(ENABLE_APP_LIST) | 76 #if defined(ENABLE_APP_LIST) |
| 77 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 77 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
| 78 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 78 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
| 79 #include "ui/app_list/app_list_switches.h" | 79 #include "ui/app_list/app_list_switches.h" |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 #if defined(ENABLE_MANAGED_USERS) | 82 #if defined(ENABLE_MANAGED_USERS) |
| 83 #include "chrome/browser/managed_mode/managed_user_settings_service.h" | 83 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" |
| 84 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h" | 84 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" |
| 85 #include "chrome/browser/managed_mode/managed_user_shared_settings_service.h" | 85 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service
.h" |
| 86 #include "chrome/browser/managed_mode/managed_user_shared_settings_service_facto
ry.h" | 86 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service
_factory.h" |
| 87 #include "chrome/browser/managed_mode/managed_user_sync_service.h" | 87 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" |
| 88 #include "chrome/browser/managed_mode/managed_user_sync_service_factory.h" | 88 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 #if defined(ENABLE_SPELLCHECK) | 91 #if defined(ENABLE_SPELLCHECK) |
| 92 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 92 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 93 #include "chrome/browser/spellchecker/spellcheck_service.h" | 93 #include "chrome/browser/spellchecker/spellcheck_service.h" |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 using browser_sync::AutofillDataTypeController; | 96 using browser_sync::AutofillDataTypeController; |
| 97 using browser_sync::AutofillProfileDataTypeController; | 97 using browser_sync::AutofillProfileDataTypeController; |
| 98 using browser_sync::BookmarkChangeProcessor; | 98 using browser_sync::BookmarkChangeProcessor; |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 case syncer::FAVICON_IMAGES: | 527 case syncer::FAVICON_IMAGES: |
| 528 case syncer::FAVICON_TRACKING: { | 528 case syncer::FAVICON_TRACKING: { |
| 529 browser_sync::FaviconCache* favicons = | 529 browser_sync::FaviconCache* favicons = |
| 530 ProfileSyncServiceFactory::GetForProfile(profile_)-> | 530 ProfileSyncServiceFactory::GetForProfile(profile_)-> |
| 531 GetFaviconCache(); | 531 GetFaviconCache(); |
| 532 return favicons ? favicons->AsWeakPtr() | 532 return favicons ? favicons->AsWeakPtr() |
| 533 : base::WeakPtr<syncer::SyncableService>(); | 533 : base::WeakPtr<syncer::SyncableService>(); |
| 534 } | 534 } |
| 535 #if defined(ENABLE_MANAGED_USERS) | 535 #if defined(ENABLE_MANAGED_USERS) |
| 536 case syncer::SUPERVISED_USER_SETTINGS: | 536 case syncer::SUPERVISED_USER_SETTINGS: |
| 537 return ManagedUserSettingsServiceFactory::GetForProfile(profile_)-> | 537 return SupervisedUserSettingsServiceFactory::GetForProfile(profile_)-> |
| 538 AsWeakPtr(); | 538 AsWeakPtr(); |
| 539 case syncer::SUPERVISED_USERS: | 539 case syncer::SUPERVISED_USERS: |
| 540 return ManagedUserSyncServiceFactory::GetForProfile(profile_)-> | 540 return SupervisedUserSyncServiceFactory::GetForProfile(profile_)-> |
| 541 AsWeakPtr(); | 541 AsWeakPtr(); |
| 542 case syncer::SUPERVISED_USER_SHARED_SETTINGS: | 542 case syncer::SUPERVISED_USER_SHARED_SETTINGS: |
| 543 return ManagedUserSharedSettingsServiceFactory::GetForBrowserContext( | 543 return SupervisedUserSharedSettingsServiceFactory::GetForBrowserContext( |
| 544 profile_)->AsWeakPtr(); | 544 profile_)->AsWeakPtr(); |
| 545 #endif | 545 #endif |
| 546 case syncer::ARTICLES: { | 546 case syncer::ARTICLES: { |
| 547 dom_distiller::DomDistillerService* service = | 547 dom_distiller::DomDistillerService* service = |
| 548 dom_distiller::DomDistillerServiceFactory::GetForBrowserContext( | 548 dom_distiller::DomDistillerServiceFactory::GetForBrowserContext( |
| 549 profile_); | 549 profile_); |
| 550 if (service) | 550 if (service) |
| 551 return service->GetSyncableService()->AsWeakPtr(); | 551 return service->GetSyncableService()->AsWeakPtr(); |
| 552 return base::WeakPtr<syncer::SyncableService>(); | 552 return base::WeakPtr<syncer::SyncableService>(); |
| 553 } | 553 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 new TypedUrlModelAssociator(profile_sync_service, | 635 new TypedUrlModelAssociator(profile_sync_service, |
| 636 history_backend, | 636 history_backend, |
| 637 error_handler); | 637 error_handler); |
| 638 TypedUrlChangeProcessor* change_processor = | 638 TypedUrlChangeProcessor* change_processor = |
| 639 new TypedUrlChangeProcessor(profile_, | 639 new TypedUrlChangeProcessor(profile_, |
| 640 model_associator, | 640 model_associator, |
| 641 history_backend, | 641 history_backend, |
| 642 error_handler); | 642 error_handler); |
| 643 return SyncComponents(model_associator, change_processor); | 643 return SyncComponents(model_associator, change_processor); |
| 644 } | 644 } |
| OLD | NEW |