New issue
Advanced search Search tips

Issue 829159 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Switching user accounts still leaves the Linux apps visible to the other user

Project Member Reported by jtitus@google.com, Apr 5 2018

Issue description

Chrome version: 67.0.3383.0 (Official Build) dev (64-bit)
OS: Chrome

Repro steps:
1. Launch Android Studio
2. Switch accounts with the bottom right account picker
3. See Android Studio still visible in the other account

Expected: I'd expect apps to remain in the account they were launched in
Actual: The other user account sees the apps launched in another users account

 
Owner: timzheng@chromium.org
Status: Started (was: Untriaged)
On Mon, Apr 23, 2018 at 8:48 PM, David Reveman <reveman@google.com> wrote:
hm, looks like we need to adds some explicit crostini code here: https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc

On Mon, Apr 23, 2018 at 5:31 PM David Reveman <reveman@google.com> wrote:
I think we need to set the profile on the shelf item or window. The profile switching goes through all windows and looks at the email of the profile to determine if a window should be hidden or visible, if I remember correctly.. I'll try to find the exact code when I have a chance.

On Mon, Apr 23, 2018 at 12:51 PM Jeffrey Kardatzke <jkardatzke@google.com> wrote:
David,

What specifically in the launcher integration needs to be done for this to be fixed?

https://groups.google.com/a/google.com/forum/#!topic/cros-containers-discuss/xZ_wqPsjGjE

Thanks,

-- 
Jeffrey Kardatzke
jkardatzke@google.com
Google, Inc.

Comment 3 Deleted

Project Member

Comment 4 by bugdroid1@chromium.org, Apr 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fa571e82bf30624b35fc7d6f30c2791b14d62207

commit fa571e82bf30624b35fc7d6f30c2791b14d62207
Author: Tim Zheng <timzheng@google.com>
Date: Fri Apr 27 18:22:37 2018

Multi-user support for Crostini apps.

This CL adds multiple user support for Crostini apps.
Crostini app window is registered to the user who launches it so when
user switch happens, Crostini app window will not leak to other users
in the session.
When user switch occurs, Crostini app windows launched by previous user
will be removed from the Shelf and Crostini app windows launched by the
current user will be added to the Shelf.

BUG= chromium:829159 
TEST=Manually tested on an eve device.

Change-Id: I2983d7087ffb87764954c2e8799b29a1ba46feec
Reviewed-on: https://chromium-review.googlesource.com/1031746
Reviewed-by: David Reveman <reveman@chromium.org>
Reviewed-by: Michael Wasserman <msw@chromium.org>
Commit-Queue: Tim Zheng <timzheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554426}
[modify] https://crrev.com/fa571e82bf30624b35fc7d6f30c2791b14d62207/chrome/browser/ui/ash/launcher/crostini_app_window_shelf_controller.cc
[modify] https://crrev.com/fa571e82bf30624b35fc7d6f30c2791b14d62207/chrome/browser/ui/ash/launcher/crostini_app_window_shelf_controller.h

Comment 5 by jtitus@google.com, May 3 2018

I got the daily build today ( Version 68.0.3416.0 (Official Build) dev (64-bit)
 ) and it has multiple odd issues with multi-user and Linux.

First - on my corp account, everything seemed fine and my existing container was used and things seemed good.  

Then a few hours later I opened my laptop and noticed the terminal wasn't in the tray any more or even in the full list of applications when I clicked the dot.  

Searching from the list showed me a terminal icon, which when I clicked on it, ran me through the terminal install flow again.

When the terminal launched, it was logged in with my personal user name (jason.titus vs my ldap of jtitus) and it was a different container without my previous directories and such.

When I switched accounts, the terminal window still showed and I could still interact with the same window. 

Seems like somehow me going into or doing something at some point in my other account got things into a strange state.

Attaching screenshots of accessing the terminal for jason.titus in both accounts.
Screenshot 2018-05-02 at 8.40.13 PM.png
332 KB View Download
Screenshot 2018-05-02 at 8.41.22 PM.png
347 KB View Download
Cc: timloh@chromium.org jkardatzke@chromium.org
Hi Tim Loh,

Can you take a look at Jason's latest bug description?
I don't fully understand your CL https://chromium-review.googlesource.com/c/chromium/src/+/1034555. You added the terminal window to crostini_app_window_shelf_controller.cc to manage. I think extension apps are managed to the shelf by extension_app_window_launcher_controller.cc. So if you don't filter it out then it can be managed by both, which is a problem.

Thanks
Tim Zheng
Crosh is a V1 packaged app, not an extension -- I don't really know the distinction, but crosh doesn't show up in extension_app_window_launcher_controller.cc.
It seems like it's being picked up somewhere else, see crbug.com/839676.
In chrome there are Browser windows, which handle web content, and also other types of AppWindows, for v2 packaged apps (ExtensionAppWindowController), Arc apps (ArcAppWindowController), etc.

v1 app windows are in Browser windows.

Not sure if that helps or not...
Components: OS>Systems>Containers
Labels: Hotlist-Crostini-UI
Status: Fixed (was: Started)
Remaining related issues are tracked by their own bugs.
Labels: -Restrict-View-Google
Labels: allpublic

Sign in to add a comment