Commit 17c8012a authored by vitaliii's avatar vitaliii Committed by Commit Bot

[Sync] Use USER_CONSENTS in consent_sync_bridge.

Previously I had to temporarily use USER_EVENTS in
consent_sync_bridge_impl, because it was added before the new datatype.
This CL fixes this.

Bug: 840357
Change-Id: I4d21598c8155e44baa6b5d99de42416c00996243
Reviewed-on: https://chromium-review.googlesource.com/1095306Reviewed-by: default avatarMarkus Heintz <markusheintz@chromium.org>
Commit-Queue: vitaliii <vitaliii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569994}
parent 7876269f
...@@ -70,10 +70,9 @@ ConsentSyncBridgeImpl::ConsentSyncBridgeImpl( ...@@ -70,10 +70,9 @@ ConsentSyncBridgeImpl::ConsentSyncBridgeImpl(
authenticated_account_id_callback_(authenticated_account_id_callback), authenticated_account_id_callback_(authenticated_account_id_callback),
is_sync_starting_or_started_(false) { is_sync_starting_or_started_(false) {
DCHECK(authenticated_account_id_callback_); DCHECK(authenticated_account_id_callback_);
// TODO(vitaliii): Use USER_CONSENTS once the new type is added.
std::move(store_factory) std::move(store_factory)
.Run(USER_EVENTS, base::BindOnce(&ConsentSyncBridgeImpl::OnStoreCreated, .Run(USER_CONSENTS, base::BindOnce(&ConsentSyncBridgeImpl::OnStoreCreated,
base::AsWeakPtr(this))); base::AsWeakPtr(this)));
} }
ConsentSyncBridgeImpl::~ConsentSyncBridgeImpl() { ConsentSyncBridgeImpl::~ConsentSyncBridgeImpl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment