Commit 1fac2bcb authored by Julian Pastarmov's avatar Julian Pastarmov Committed by Commit Bot

[sync] Add an immediate refresh trigger for local sync upon sync startup.

Otherwise no sync happens on browser startup and changes made on other
computers only become visible after some syncable event is committed to the
sync local backend.

BUG=816379

Change-Id: I60c0fc8e67edd104fdc1a636abad2e829baf4f99
Reviewed-on: https://chromium-review.googlesource.com/1209622Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589907}
parent ffa8260c
......@@ -388,6 +388,11 @@ void ProfileSyncService::StartSyncingWithServer() {
if (engine_)
engine_->StartSyncingWithServer();
if (IsLocalSyncEnabled()) {
TriggerRefresh(
syncer::Intersection(GetActiveDataTypes(), syncer::ProtocolTypes()));
}
}
bool ProfileSyncService::IsDataTypeControllerRunning(
......
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