file-handling: Fix crash in guest sessions
https://crrev.com/c/2360089 added a "IsOffTheRecord" check to fix a crash in incognito. Unfortunally that introduced a new crash for Guest sessions. IsOffTheRecord() returns true for both incognito and guest session profile, which caused guest session to try to use the original login profile which leads to a crash. This fixes the issue by excluding guest sessions and only getting the original profile for incognito mode. Bug: 1121553 Change-Id: Iface9c78a56de1c44295d503e7090a64cdb471ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2377187Reviewed-by:Alex Danilo <adanilo@chromium.org> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#801699}
Showing
Please register or sign in to comment