Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Issue 2345043002: arc: Prevent showing Arc app window for secondary user profile. (Closed)

Created:
4 years, 3 months ago by khmel
Modified:
4 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Prevent showing Arc app window for secondary user profile. Arc has a limitation to be visible for primary profile only. However, there are situations when Arc task can be started while the secondary profile is shown. Before this led to case when Arc window was shown, which is unexpected. This CL fixes this issue and prevents showing Arc window for non-primary profiles. Test=Manually on the device. Start Arc app in deferred mode and switch to the secondary profile fast. Arc app is started but window is not shown. Switch back to primary profile and window is automatically restored there. BUG=b/31500778 BUG=647379 Committed: https://crrev.com/a4d9c53e0ca156489f3a9b970925594786bab1c0 Cr-Commit-Position: refs/heads/master@{#419497}

Patch Set 1 #

Total comments: 1

Patch Set 2 : refactored #

Total comments: 4

Patch Set 3 : use one point to add window to multi user manager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -13 lines) Patch
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 4 chunks +22 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
khmel
Hi David, PTAL https://codereview.chromium.org/2345043002/diff/1/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc (right): https://codereview.chromium.org/2345043002/diff/1/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc#newcode135 chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc:135: arc::LaunchApp(observed_profile_, app_id); Arc is associated with ...
4 years, 3 months ago (2016-09-15 20:13:44 UTC) #2
reveman
how do we handle similar cases for chrome apps? is this something that the generic ...
4 years, 3 months ago (2016-09-16 00:37:12 UTC) #3
khmel
On 2016/09/16 00:37:12, reveman wrote: > how do we handle similar cases for chrome apps? ...
4 years, 3 months ago (2016-09-16 18:08:16 UTC) #4
khmel
Adding Stefan to review. PTAL
4 years, 3 months ago (2016-09-16 18:09:54 UTC) #6
Mr4D (OOO till 08-26)
Apps and chrome browser pages are getting automatically tagged for a particular user when their ...
4 years, 3 months ago (2016-09-16 18:59:56 UTC) #7
Mr4D (OOO till 08-26)
Please have a look at the comment! https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode320 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:320: AttachWindowToMultiUserManager(window); Hmm.. ...
4 years, 3 months ago (2016-09-16 19:08:55 UTC) #8
khmel
https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode320 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:320: AttachWindowToMultiUserManager(window); On 2016/09/16 19:08:55, Mr4D wrote: > Hmm.. This ...
4 years, 3 months ago (2016-09-16 19:19:31 UTC) #9
Mr4D (OOO till 08-26)
https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode320 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:320: AttachWindowToMultiUserManager(window); Okay. I understand that the icon would be ...
4 years, 3 months ago (2016-09-16 22:07:28 UTC) #10
khmel
https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2345043002/diff/20001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode320 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:320: AttachWindowToMultiUserManager(window); On 2016/09/16 22:07:28, Mr4D wrote: > Okay. I ...
4 years, 3 months ago (2016-09-16 22:38:45 UTC) #11
Mr4D (OOO till 08-26)
Thanks! LGTM!
4 years, 3 months ago (2016-09-16 23:22:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345043002/40001
4 years, 3 months ago (2016-09-19 17:16:33 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-19 17:49:31 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 17:52:01 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a4d9c53e0ca156489f3a9b970925594786bab1c0
Cr-Commit-Position: refs/heads/master@{#419497}

Powered by Google App Engine
This is Rietveld 408576698