summaryrefslogtreecommitdiff
path: root/chromium/components/browser_sync/profile_sync_components_factory_impl.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-16 11:45:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-17 08:59:23 +0000
commit552906b0f222c5d5dd11b9fd73829d510980461a (patch)
tree3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/components/browser_sync/profile_sync_components_factory_impl.cc
parent1b05827804eaf047779b597718c03e7d38344261 (diff)
downloadqtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/browser_sync/profile_sync_components_factory_impl.cc')
-rw-r--r--chromium/components/browser_sync/profile_sync_components_factory_impl.cc49
1 files changed, 11 insertions, 38 deletions
diff --git a/chromium/components/browser_sync/profile_sync_components_factory_impl.cc b/chromium/components/browser_sync/profile_sync_components_factory_impl.cc
index 3610f8e7ce4..eb19d30f5a8 100644
--- a/chromium/components/browser_sync/profile_sync_components_factory_impl.cc
+++ b/chromium/components/browser_sync/profile_sync_components_factory_impl.cc
@@ -21,7 +21,6 @@
#include "components/history/core/browser/sync/history_delete_directives_model_type_controller.h"
#include "components/history/core/browser/sync/typed_url_model_type_controller.h"
#include "components/password_manager/core/browser/password_store.h"
-#include "components/password_manager/core/browser/sync/password_data_type_controller.h"
#include "components/password_manager/core/browser/sync/password_model_type_controller.h"
#include "components/prefs/pref_service.h"
#include "components/reading_list/features/reading_list_switches.h"
@@ -255,48 +254,22 @@ ProfileSyncComponentsFactoryImpl::CreateCommonDataTypeControllers(
.get()),
history_disabled_pref_));
}
-
- // If |kDoNotSyncFaviconDataTypes| feature is enabled, never register
- // controllers for favicon sync. Otherwise, it is enabled by default and we
- // should register unless explicitly disabled.
- if (!base::FeatureList::IsEnabled(switches::kDoNotSyncFaviconDataTypes) &&
- !disabled_types.Has(syncer::FAVICON_IMAGES) &&
- !disabled_types.Has(syncer::FAVICON_TRACKING)) {
- controllers.push_back(
- std::make_unique<SyncableServiceBasedModelTypeController>(
- syncer::FAVICON_IMAGES,
- sync_client_->GetModelTypeStoreService()->GetStoreFactory(),
- sync_client_->GetSyncableServiceForType(syncer::FAVICON_IMAGES),
- dump_stack));
- controllers.push_back(
- std::make_unique<SyncableServiceBasedModelTypeController>(
- syncer::FAVICON_TRACKING,
- sync_client_->GetModelTypeStoreService()->GetStoreFactory(),
- sync_client_->GetSyncableServiceForType(syncer::FAVICON_TRACKING),
- dump_stack));
- }
}
// Password sync is enabled by default. Register unless explicitly
// disabled.
if (!disabled_types.Has(syncer::PASSWORDS)) {
- if (base::FeatureList::IsEnabled(switches::kSyncUSSPasswords)) {
- if (profile_password_store_) {
- // |profile_password_store_| can be null in tests.
- controllers.push_back(
- std::make_unique<password_manager::PasswordModelTypeController>(
- profile_password_store_->CreateSyncControllerDelegate(),
- account_password_store_
- ? account_password_store_->CreateSyncControllerDelegate()
- : nullptr,
- sync_client_->GetPrefService(), sync_service,
- sync_client_->GetPasswordStateChangedCallback()));
- }
- } else {
- controllers.push_back(std::make_unique<PasswordDataTypeController>(
- dump_stack, sync_service, sync_client_,
- sync_client_->GetPasswordStateChangedCallback(),
- profile_password_store_));
+ if (profile_password_store_) {
+ // |profile_password_store_| can be null in tests.
+ controllers.push_back(
+ std::make_unique<password_manager::PasswordModelTypeController>(
+ profile_password_store_->CreateSyncControllerDelegate(),
+ account_password_store_
+ ? account_password_store_->CreateSyncControllerDelegate()
+ : nullptr,
+ sync_client_->GetPrefService(),
+ sync_client_->GetIdentityManager(), sync_service,
+ sync_client_->GetPasswordStateChangedCallback()));
}
}