| Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| index 9b07b992e3edc7364e34aaea0999770d9fb609fe..5c2385a4bb923a683400e87492823081ea78e7b3 100644
|
| --- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| @@ -299,7 +299,7 @@ void ArcAppWindowLauncherController::OnWindowVisibilityChanging(
|
| aura::Window* window,
|
| bool visible) {
|
| // The application id property should be set at this time.
|
| - if (visible)
|
| + if (visible && observed_profile_ == owner()->GetProfile())
|
| AttachControllerToWindowIfNeeded(window);
|
| }
|
|
|
| @@ -421,6 +421,10 @@ void ArcAppWindowLauncherController::OnTaskCreated(
|
| task_id_to_shelf_app_id_[task_id] = GetShelfAppIdFromArcAppId(
|
| ArcAppListPrefs::GetAppId(package_name, activity_name));
|
|
|
| + // Don't create shelf icon for non-primary user.
|
| + if (observed_profile_ != owner()->GetProfile())
|
| + return;
|
| +
|
| AttachControllerToWindowsIfNeeded();
|
| }
|
|
|
|
|