[ios] Call StartLanguageDetection() on init
WebStateObserver::PageLoaded triggers this call in LanguageDetectionController, but it can be executed while a preloaded WebState is finished in the background. Then, when that WebState is swapped out as the active WebState, StartLanguageDetection() will never be called in LanguageDetectionController. Thus, the infobar never shows. Adding the call to the init method when the WebState is swapped solves the issue. Fixed: 947482 Change-Id: If6b6a77711039835596374bdc6121ece4642987c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095355 Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Reviewed-by:Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:
anthonyvd <anthonyvd@chromium.org> Cr-Commit-Position: refs/heads/master@{#751388}
Showing
Please register or sign in to comment