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

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)

Created:
4 years ago by Luis Héctor Chávez
Modified:
4 years ago
Reviewers:
stevenjb, khmel
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, sadrul, yusukes+watch_chromium.org, tdresser+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org, Matt Giuca, sky
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Propagate information about how ARC apps are launched" This change lets ARC know whether an app should be launched in Touch Mode[1] or not. 1: http://android-developers.blogspot.com/2008/12/touch-mode.html BUG=669146 TEST=ARC app starts in touch mode when activated using mouse/trackpad/touch TEST=ARC app starts in focus mode when activated using keyboard. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/b5898c35b2415dbf8b5d9aaa19a6b13b0510d1e7 Committed: https://crrev.com/fa0327a360d5e676680a4b5337a607958c0512d0 Cr-Original-Commit-Position: refs/heads/master@{#435115} Cr-Commit-Position: refs/heads/master@{#435327}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed unit tests #

Total comments: 2

Patch Set 3 : Moved mouse/touch detectors to ARC code #

Total comments: 4

Patch Set 4 : Dedupe some code + propagate flags from JS #

Total comments: 3

Patch Set 5 : Propagate flag from deferred launcher #

Total comments: 2

Patch Set 6 : git cl lint #

Patch Set 7 : Rebase to ToT #

Total comments: 18

Patch Set 8 : Addressed review feedback #

Patch Set 9 : Fixed use-after-free #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -60 lines) Patch
M chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_item.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_unittest.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.h View 2 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.cc View 1 2 3 4 5 6 7 14 chunks +79 lines, -26 lines 0 comments Download
M chrome/browser/ui/app_list/search/arc_app_result.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 7 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 66 (39 generated)
Luis Héctor Chávez
PTAL khmel: chrome/browser/ui/app_list/arc stevenjb: chrome/browser/* sky: ui/*
4 years ago (2016-11-28 20:22:29 UTC) #4
khmel
https://codereview.chromium.org/2540433002/diff/1/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/1/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode220 chrome/browser/ui/app_list/arc/arc_app_utils.cc:220: extras.SetBoolean("inTouchMode", Can we make sure that sequence of operations ...
4 years ago (2016-11-28 20:27:02 UTC) #5
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/1/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/1/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode220 chrome/browser/ui/app_list/arc/arc_app_utils.cc:220: extras.SetBoolean("inTouchMode", On 2016/11/28 20:27:02, khmel wrote: > Can we ...
4 years ago (2016-11-28 20:30:29 UTC) #6
sky
https://codereview.chromium.org/2540433002/diff/20001/ui/events/event_utils.cc File ui/events/event_utils.cc (right): https://codereview.chromium.org/2540433002/diff/20001/ui/events/event_utils.cc#newcode133 ui/events/event_utils.cc:133: bool IsMouseEventFromFlags(int event_flags) { AFAICT these functions are only ...
4 years ago (2016-11-28 21:35:26 UTC) #11
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/20001/ui/events/event_utils.cc File ui/events/event_utils.cc (right): https://codereview.chromium.org/2540433002/diff/20001/ui/events/event_utils.cc#newcode133 ui/events/event_utils.cc:133: bool IsMouseEventFromFlags(int event_flags) { On 2016/11/28 21:35:26, sky wrote: ...
4 years ago (2016-11-28 21:55:05 UTC) #12
Luis Héctor Chávez
-sky@ as reviewer.
4 years ago (2016-11-28 21:55:29 UTC) #14
khmel
https://codereview.chromium.org/2540433002/diff/40001/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/40001/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode225 chrome/browser/ui/app_list/arc/arc_app_utils.cc:225: if (intent_helper_instance) { Nit: please log error if instance ...
4 years ago (2016-11-28 22:08:52 UTC) #15
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/40001/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/40001/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode225 chrome/browser/ui/app_list/arc/arc_app_utils.cc:225: if (intent_helper_instance) { On 2016/11/28 22:08:51, khmel wrote: > ...
4 years ago (2016-11-28 22:50:01 UTC) #17
khmel
lgtm with nit https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode308 chrome/browser/ui/app_list/arc/arc_app_utils.cc:308: app_id); nit: It would be beneficial ...
4 years ago (2016-11-28 23:02:43 UTC) #20
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode308 chrome/browser/ui/app_list/arc/arc_app_utils.cc:308: app_id); On 2016/11/28 23:02:43, khmel wrote: > nit: It ...
4 years ago (2016-11-28 23:20:53 UTC) #21
khmel
https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc File chrome/browser/ui/app_list/arc/arc_app_utils.cc (right): https://codereview.chromium.org/2540433002/diff/60001/chrome/browser/ui/app_list/arc/arc_app_utils.cc#newcode308 chrome/browser/ui/app_list/arc/arc_app_utils.cc:308: app_id); On 2016/11/28 23:20:53, Luis Héctor Chávez wrote: > ...
4 years ago (2016-11-28 23:23:49 UTC) #22
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/80001/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/2540433002/diff/80001/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc#newcode7 chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc:7: #include <string> On 2016/11/28 23:23:48, khmel wrote: > nit: ...
4 years ago (2016-11-28 23:27:56 UTC) #23
Luis Héctor Chávez
stevenjb@ gentle ping?
4 years ago (2016-11-29 19:02:26 UTC) #30
stevenjb
https://codereview.chromium.org/2540433002/diff/120001/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc File chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc (right): https://codereview.chromium.org/2540433002/diff/120001/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc#newcode24 chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc:24: // Launching the app by app id in landscape ...
4 years ago (2016-11-29 20:17:10 UTC) #31
Luis Héctor Chávez
https://codereview.chromium.org/2540433002/diff/120001/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc File chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc (right): https://codereview.chromium.org/2540433002/diff/120001/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc#newcode24 chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc:24: // Launching the app by app id in landscape ...
4 years ago (2016-11-29 20:50:47 UTC) #32
stevenjb
Thanks for the clarifying class comments. LGTM.
4 years ago (2016-11-29 21:04:31 UTC) #35
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/2540433002/130001
4 years ago (2016-11-29 23:26:37 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-30 01:30:06 UTC) #42
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/2540433002/130001
4 years ago (2016-11-30 01:45:40 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years ago (2016-11-30 01:49:42 UTC) #47
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/b5898c35b2415dbf8b5d9aaa19a6b13b0510d1e7 Cr-Commit-Position: refs/heads/master@{#435115}
4 years ago (2016-11-30 01:58:49 UTC) #49
battre
A revert of this CL (patchset #8 id:130001) has been created in https://codereview.chromium.org/2540713003/ by battre@chromium.org. ...
4 years ago (2016-11-30 08:11:27 UTC) #50
Luis Héctor Chávez
There was a very dumb on my part use-after-free that caused this change to be ...
4 years ago (2016-11-30 16:44:32 UTC) #54
khmel
On 2016/11/30 16:44:32, Luis Héctor Chávez wrote: > There was a very dumb on my ...
4 years ago (2016-11-30 17:52:14 UTC) #58
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/2540433002/150001
4 years ago (2016-11-30 17:53:05 UTC) #61
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years ago (2016-11-30 17:59:40 UTC) #64
commit-bot: I haz the power
4 years ago (2016-11-30 18:02:11 UTC) #66
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fa0327a360d5e676680a4b5337a607958c0512d0
Cr-Commit-Position: refs/heads/master@{#435327}

Powered by Google App Engine
This is Rietveld 408576698