DescriptionFix non-otr profile's file manager being launched in guest mode.
There are two issues:
1. App laucher uses the active profile's original profile to determine
if we're in guest mode (and thus always assuming guest session is not
active).
2. Every file manager event router (each profile has one) opening
a file manager window when removable device is inserted. So the
original profile's event router will open a window too.
BUG=329658
TEST=
1. Login as guest, launch file manager from the app launcher, open a doc file
from the file manager using quick office, and verify the doc is opened in off
the record window (Ctrl-T should open guest tab).
2. Login as guest, insert an SD card, make sure only 1 file manager window is
opened. From the opened file manager window, open a doc file using quick
office and make sure the document is opened in off the record window.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243474
Patch Set 1 #
Total comments: 4
Patch Set 2 : check for creating browser and app windows #Patch Set 3 : forgot to remove code used to verify checks catch the bug :) #Patch Set 4 : #Patch Set 5 : . #
Total comments: 6
Patch Set 6 : rebase #Patch Set 7 : some extra comments #Patch Set 8 : rebased #
Total comments: 2
Patch Set 9 : profile->IsGuestSession instead of checking cmd line #
Messages
Total messages: 25 (0 generated)
|