Refactor TranslateManager::InitiateTranslation
This CL changes InitiateTranslation in 2 ways: - It decouples the actual decision making from the triggering, metrics recording, and Ranker Event logging - It avoids returning early, to enable some upcoming behavior that would have required inserting the same function call in multiple places in the function Functionally, there should be no change introduced from this CL, although the TranslateManager performs marginally more work on cases that would previously return early. Change-Id: Ib78f7f5d42c651c1089711e0f6e14f362fdddebd Reviewed-on: https://chromium-review.googlesource.com/c/1431480 Commit-Queue: anthonyvd <anthonyvd@chromium.org> Reviewed-by:anthonyvd <anthonyvd@chromium.org> Reviewed-by:
Mathieu Perreault <mathp@chromium.org> Cr-Commit-Position: refs/heads/master@{#625683}
Showing
This diff is collapsed.
Please register or sign in to comment