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

Issue 2282023002: arc: Support window recreation. (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: Support window recreation. In some cases, Arc window may be destroyed and created again. This leads to situation when shelf item is closed and there is no longer item for Arc task. This CL allows Arc window to be recreated. The situation may go even worse, window may be destroyed and not created after. In this case we have task without window. In this case, we send launch request to Android and this put Android task to foreground and window is created. BUG=b/31071902 TEST=Manually on device, installed several photo editor apps as described in task. Minimize/maximize window. Sometimes window get destroyed and created again. Shelf item is not lost in this case. Sometimes window destroyed and not recreated. Shelf icon still exists and clicking on it gets new window back for task. TEST=Extended unit_tests Committed: https://crrev.com/a4c117d63a677ab01edf04b96dac78134347bf82 Cr-Commit-Position: refs/heads/master@{#415136}

Patch Set 1 #

Total comments: 3

Patch Set 2 : use SetTaskActive instead of Launch #

Total comments: 2

Patch Set 3 : rebase + nits #

Messages

Total messages: 21 (9 generated)
khmel
Hi Stefan and David, PTAL https://codereview.chromium.org/2282023002/diff/1/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h (left): https://codereview.chromium.org/2282023002/diff/1/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h#oldcode88 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h:88: struct TaskInfo; Actually only ...
4 years, 3 months ago (2016-08-26 17:50:03 UTC) #2
khmel
Changed App launch to SetTaskActive in case window is not available. PTAL
4 years, 3 months ago (2016-08-26 19:46:04 UTC) #3
Mr4D (OOO till 08-26)
I think this is ok - but please also wait for reveman. lgtm https://codereview.chromium.org/2282023002/diff/1/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc File ...
4 years, 3 months ago (2016-08-26 22:54:43 UTC) #4
reveman
sounds reasonable, lgtm. I'll leave the actual code review to skuhne@.
4 years, 3 months ago (2016-08-26 23:20:59 UTC) #5
khmel
Thanks Stefan and David for review. Adding Xiyuan, c/b/ui/app_list/arc/arc_app_utils.* PTAL https://codereview.chromium.org/2282023002/diff/1/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc (right): https://codereview.chromium.org/2282023002/diff/1/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc#newcode28 ...
4 years, 3 months ago (2016-08-29 16:41:04 UTC) #9
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/2282023002/40001
4 years, 3 months ago (2016-08-29 16:45:09 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/248334)
4 years, 3 months ago (2016-08-29 16:55:04 UTC) #12
xiyuan
arc_app_utils.* lgtm
4 years, 3 months ago (2016-08-29 17:11:54 UTC) #13
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/2282023002/40001
4 years, 3 months ago (2016-08-29 18:26:01 UTC) #15
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/2282023002/40001
4 years, 3 months ago (2016-08-29 21:53:04 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 05:07:46 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 05:09:46 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a4c117d63a677ab01edf04b96dac78134347bf82
Cr-Commit-Position: refs/heads/master@{#415136}

Powered by Google App Engine
This is Rietveld 408576698