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

Issue 1823923002: arc: Support running Arc app in shelf (Closed)

Created:
4 years, 9 months ago by khmel
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, kalyank, qsr+mojo_chromium.org, sadrul, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Support running Arc app in shelf. This contains refactoring of legacy app window controllers in order to support an abstract app and base implementation for running Arc tasks. BUG=596750 TEST=Manually tested on device with activated experimental feature for Arc multi-window on. Running Arc tasks are reflected in Shelf and behaves similar to legacy extension based platform apps. TEST=Extended unit_tests pass. TEST=test_that ${minnie} suite:arc-bvt-cq pass Committed: https://crrev.com/9cdc060a54f28c4fb3a3915919332197a588c568 Cr-Commit-Position: refs/heads/master@{#383528}

Patch Set 1 #

Patch Set 2 : refactored #

Patch Set 3 : rebase, tests, cleanup #

Total comments: 47

Patch Set 4 : nits #

Total comments: 4

Patch Set 5 : update unit_test #

Total comments: 8

Patch Set 6 : rebased + few nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+939 lines, -555 lines) Patch
M chrome/browser/ui/ash/launcher/app_window_launcher_controller.h View 1 4 chunks +9 lines, -49 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_controller.cc View 1 3 chunks +1 line, -181 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 4 chunks +28 lines, -24 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 4 5 5 chunks +58 lines, -169 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 1 chunk +258 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 6 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 10 chunks +86 lines, -12 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h View 1 2 3 5 chunks +21 lines, -37 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 7 chunks +45 lines, -70 lines 0 comments Download
A chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 4 5 1 chunk +166 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M components/arc/common/app.mojom View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M components/arc/test/fake_app_instance.h View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M components/arc/test/fake_app_instance.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
khmel
Hi Stefan and Xiyuan, PTAL
4 years, 9 months ago (2016-03-23 15:29:30 UTC) #4
xiyuan
Mr4D should drive the review since he is more familiar with the launcher code. https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc ...
4 years, 9 months ago (2016-03-23 23:22:53 UTC) #5
khmel
Thanks Xiyuan for review, Mr4D, your turn? :) PTAL https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc (right): https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc#newcode49 chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc:49: ...
4 years, 9 months ago (2016-03-24 16:30:38 UTC) #6
xiyuan
LGTM but let's also hear it from Mr4D. https://codereview.chromium.org/1823923002/diff/40001/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/1823923002/diff/40001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode132 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:132: if ...
4 years, 9 months ago (2016-03-24 16:47:16 UTC) #7
khmel
https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc (right): https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc#newcode664 chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc:664: views::Widget* CreateAppWindow(std::string* window_app_id) { On 2016/03/24 16:47:16, xiyuan wrote: ...
4 years, 9 months ago (2016-03-24 16:58:42 UTC) #8
xiyuan
https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc (right): https://codereview.chromium.org/1823923002/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc#newcode664 chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc:664: views::Widget* CreateAppWindow(std::string* window_app_id) { On 2016/03/24 16:58:42, khmel wrote: ...
4 years, 9 months ago (2016-03-24 17:03:48 UTC) #9
Mr4D (OOO till 08-26)
I looked at everything up and down several times and it looks good. (Next time ...
4 years, 9 months ago (2016-03-24 23:03:46 UTC) #10
khmel
Thanks Stefan for review! I will keep your suggestion in mind and will try to ...
4 years, 9 months ago (2016-03-24 23:56:54 UTC) #13
Luis Héctor Chávez
lgtm with one nit. https://codereview.chromium.org/1823923002/diff/80001/components/arc/test/fake_app_instance.h File components/arc/test/fake_app_instance.h (right): https://codereview.chromium.org/1823923002/diff/80001/components/arc/test/fake_app_instance.h#newcode89 components/arc/test/fake_app_instance.h:89: void SetTaskInfo(int task_id, nit: int32_t ...
4 years, 9 months ago (2016-03-25 16:12:25 UTC) #14
dcheng
mojom LGTM https://codereview.chromium.org/1823923002/diff/80001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc (right): https://codereview.chromium.org/1823923002/diff/80001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc#newcode32 chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc:32: return std::find_if(windows_.begin(), windows_.end(), Nit: #include <algorithm> for ...
4 years, 9 months ago (2016-03-26 09:02:31 UTC) #15
khmel
Thank you for review. https://codereview.chromium.org/1823923002/diff/80001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc (right): https://codereview.chromium.org/1823923002/diff/80001/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc#newcode32 chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc:32: return std::find_if(windows_.begin(), windows_.end(), On 2016/03/26 ...
4 years, 8 months ago (2016-03-28 17:17:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823923002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823923002/100001
4 years, 8 months ago (2016-03-28 17:18:11 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-28 18:47:26 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 18:49:14 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9cdc060a54f28c4fb3a3915919332197a588c568
Cr-Commit-Position: refs/heads/master@{#383528}

Powered by Google App Engine
This is Rietveld 408576698