Commit 83391efb authored by Marc Treib's avatar Marc Treib Committed by Commit Bot

LocalSync cleanup: Remove unnecessary TryStart call

If local Sync is enabled, then ProfileSyncService::OnEngineInitialized()
used to call TryStart(). TryStart() kicks off the engine initialization,
which is obviously redundant at this point. So this CL removes the
unnecessary call.

Bug: none
Change-Id: Iac2a01ff013e8034db446ed6200131829299b2bf
Reviewed-on: https://chromium-review.googlesource.com/c/1486355
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Auto-Submit: Marc Treib <treib@chromium.org>
Reviewed-by: default avatarMohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635457}
parent 5a4ac22b
...@@ -959,11 +959,6 @@ void ProfileSyncService::OnEngineInitialized( ...@@ -959,11 +959,6 @@ void ProfileSyncService::OnEngineInitialized(
} }
NotifyObservers(); NotifyObservers();
// Nobody will call us to start if no sign in is going to happen.
if (IsLocalSyncEnabled()) {
startup_controller_->TryStart(/*force_immediate=*/true);
}
} }
void ProfileSyncService::OnSyncCycleCompleted( void ProfileSyncService::OnSyncCycleCompleted(
......
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