Use original profile in InputImeEventRouter.
GetInputImeEventRouter uses the incognito profile as a common reference for an incognito profile and its original profile. But when a profile is destroyed, it deletes the reference based on the profile itself. This can cause problems when Chrome starts in incognito mode, then a regular window is opened, and the incognito window is closed. In this scenario, the InputImeEventRouter is deleted when the incognito profile is closed, but it is still referenced by the original profile. To fix this, the original profile is used as the reference for both modes as it is always destroyed after the incognito one. Bug: 856135 Change-Id: Ieb4f006e9cc5c36cd9264fd0b1b4ef490e1f3162 Reviewed-on: https://chromium-review.googlesource.com/c/1288350Reviewed-by:Shu Chen <shuchen@chromium.org> Commit-Queue: Ramin Halavati <rhalavati@chromium.org> Cr-Commit-Position: refs/heads/master@{#600727}
Showing
Please register or sign in to comment