Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity 25 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "chrome/browser/extensions/extension_sync_service.h" 70 #include "chrome/browser/extensions/extension_sync_service.h"
71 #endif 71 #endif
72 72
73 #if defined(ENABLE_APP_LIST) 73 #if defined(ENABLE_APP_LIST)
74 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" 74 #include "chrome/browser/ui/app_list/app_list_syncable_service.h"
75 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" 75 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h"
76 #include "ui/app_list/app_list_switches.h" 76 #include "ui/app_list/app_list_switches.h"
77 #endif 77 #endif
78 78
79 #if defined(ENABLE_MANAGED_USERS) 79 #if defined(ENABLE_MANAGED_USERS)
80 #include "chrome/browser/managed_mode/managed_user_settings_service.h" 80 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
81 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h" 81 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor y.h"
82 #include "chrome/browser/managed_mode/managed_user_shared_settings_service.h" 82 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service .h"
83 #include "chrome/browser/managed_mode/managed_user_shared_settings_service_facto ry.h" 83 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h"
84 #include "chrome/browser/managed_mode/managed_user_sync_service.h" 84 #include "chrome/browser/supervised_user/supervised_user_sync_service.h"
85 #include "chrome/browser/managed_mode/managed_user_sync_service_factory.h" 85 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h"
86 #endif 86 #endif
87 87
88 #if !defined(OS_ANDROID) 88 #if !defined(OS_ANDROID)
89 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" 89 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h"
90 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 90 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
91 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service.h" 91 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service.h"
92 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service_factory.h" 92 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service_factory.h"
93 #endif 93 #endif
94 94
95 #if defined(ENABLE_SPELLCHECK) 95 #if defined(ENABLE_SPELLCHECK)
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 case syncer::FAVICON_IMAGES: 533 case syncer::FAVICON_IMAGES:
534 case syncer::FAVICON_TRACKING: { 534 case syncer::FAVICON_TRACKING: {
535 browser_sync::FaviconCache* favicons = 535 browser_sync::FaviconCache* favicons =
536 ProfileSyncServiceFactory::GetForProfile(profile_)-> 536 ProfileSyncServiceFactory::GetForProfile(profile_)->
537 GetFaviconCache(); 537 GetFaviconCache();
538 return favicons ? favicons->AsWeakPtr() 538 return favicons ? favicons->AsWeakPtr()
539 : base::WeakPtr<syncer::SyncableService>(); 539 : base::WeakPtr<syncer::SyncableService>();
540 } 540 }
541 #if defined(ENABLE_MANAGED_USERS) 541 #if defined(ENABLE_MANAGED_USERS)
542 case syncer::SUPERVISED_USER_SETTINGS: 542 case syncer::SUPERVISED_USER_SETTINGS:
543 return ManagedUserSettingsServiceFactory::GetForProfile(profile_)-> 543 return SupervisedUserSettingsServiceFactory::GetForProfile(profile_)->
544 AsWeakPtr(); 544 AsWeakPtr();
545 case syncer::SUPERVISED_USERS: 545 case syncer::SUPERVISED_USERS:
546 return ManagedUserSyncServiceFactory::GetForProfile(profile_)-> 546 return SupervisedUserSyncServiceFactory::GetForProfile(profile_)->
547 AsWeakPtr(); 547 AsWeakPtr();
548 case syncer::SUPERVISED_USER_SHARED_SETTINGS: 548 case syncer::SUPERVISED_USER_SHARED_SETTINGS:
549 return ManagedUserSharedSettingsServiceFactory::GetForBrowserContext( 549 return SupervisedUserSharedSettingsServiceFactory::GetForBrowserContext(
550 profile_)->AsWeakPtr(); 550 profile_)->AsWeakPtr();
551 #endif 551 #endif
552 case syncer::ARTICLES: { 552 case syncer::ARTICLES: {
553 dom_distiller::DomDistillerService* service = 553 dom_distiller::DomDistillerService* service =
554 dom_distiller::DomDistillerServiceFactory::GetForBrowserContext( 554 dom_distiller::DomDistillerServiceFactory::GetForBrowserContext(
555 profile_); 555 profile_);
556 if (service) 556 if (service)
557 return service->GetSyncableService()->AsWeakPtr(); 557 return service->GetSyncableService()->AsWeakPtr();
558 return base::WeakPtr<syncer::SyncableService>(); 558 return base::WeakPtr<syncer::SyncableService>();
559 } 559 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 new TypedUrlModelAssociator(profile_sync_service, 641 new TypedUrlModelAssociator(profile_sync_service,
642 history_backend, 642 history_backend,
643 error_handler); 643 error_handler);
644 TypedUrlChangeProcessor* change_processor = 644 TypedUrlChangeProcessor* change_processor =
645 new TypedUrlChangeProcessor(profile_, 645 new TypedUrlChangeProcessor(profile_,
646 model_associator, 646 model_associator,
647 history_backend, 647 history_backend,
648 error_handler); 648 error_handler);
649 return SyncComponents(model_associator, change_processor); 649 return SyncComponents(model_associator, change_processor);
650 } 650 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698