Chromium Code Reviews| Index: components/browser_sync/profile_sync_components_factory_impl.cc |
| diff --git a/components/browser_sync/profile_sync_components_factory_impl.cc b/components/browser_sync/profile_sync_components_factory_impl.cc |
| index c4332e02bdc969cd0fa5b05a11bd7e5b61822f33..a3c2b93c919585852847cae567821d8d0068602c 100644 |
| --- a/components/browser_sync/profile_sync_components_factory_impl.cc |
| +++ b/components/browser_sync/profile_sync_components_factory_impl.cc |
| @@ -155,9 +155,17 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes( |
| // Autofill sync is enabled by default. Register unless explicitly |
| // disabled. |
| if (!disabled_types.Has(syncer::AUTOFILL)) { |
| - sync_service->RegisterDataTypeController( |
| - base::MakeUnique<AutofillDataTypeController>( |
| - db_thread_, error_callback, sync_client_, web_data_service_)); |
| + if (base::FeatureList::IsEnabled(switches::kSyncUSSAutocomplete)) { |
| + sync_service->RegisterDataTypeController( |
| + base::MakeUnique<ModelTypeController>( |
| + syncer::AUTOFILL, base::Bind(&base::debug::DumpWithoutCrashing), |
| + sync_client_, db_thread_)); |
| + // db_thread_, error_callback, sync_client_, web_data_service_)); |
|
maxbogue
2016/11/18 22:22:36
Guessing you didn't mean to leave this line in.
Patrick Noland
2016/11/22 18:51:04
Done.
|
| + } else { |
| + sync_service->RegisterDataTypeController( |
| + base::MakeUnique<AutofillDataTypeController>( |
| + db_thread_, error_callback, sync_client_, web_data_service_)); |
| + } |
| } |
| // Autofill profile sync is enabled by default. Register unless explicitly |