New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 652563 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Nov 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug

Blocking:
issue 547071



Sign in to add a comment

Prepare chrome_main_app_mode_mac.mm for 10.9 deployment target.

Project Member Reported by eugene...@chromium.org, Oct 4 2016

Issue description

-[ReplyEventHandler pingProcess:andCall:] should take pid_t instead of ProcessSerialNumber and GetProcessForPID should not be used.
 
GetProcessForPID usage was introduced here:
https://codereview.chromium.org/2390953003/

Comment 2 by sdy@chromium.org, Oct 4 2016

Blocking: 547071
Cc: tapted@chromium.org
This was done for the App Launcher in
https://chromium.googlesource.com/chromium/src/+/80da61e18ab0c93c7fd5d9816979e155db8c3dbe

Given that the App Launcher is gone and that App support is slated for removal from Chrome https://blog.chromium.org/2016/08/from-chrome-apps-to-web.html, do we still need this?
Cc: dominickn@chromium.org benwells@chromium.org
Removing GetProcessForPID might be straightforward, but you're right there is a bigger question. app_mode actually started long ago for  Issue 13148 , for hosted apps. It's since been used for packaged apps, the app launcher, then bookmark apps (Issue 517682). "Bookmark apps" are still part of the progressive web app ecosystem. They've launched on all other platforms, but they haven't launched properly on Mac. Largely because of being held up by  Issue 308382  and the various bugs that feed into it. There _might_ be a resolution for that using Mus, but that's unlikely to involve any of the app_mode code.

So if bookmark apps never launch using app_mode on Mac, then this is probably code that can be purged with the rest of "apps". If we want to get bookmark apps out of limbo before Mus is ready on Mac, we may still want it.
Owner: spqc...@chromium.org
Status: Assigned (was: Available)
Please note that https://codereview.chromium.org/2390953003/ has not landed yet. I filed a bug so I could add TODO to the code.
The CL mentioned has landed. Is this done?
Status: Started (was: Assigned)
Not yet, this is in progress. Thanks for letting me know

Comment 9 by tapted@chromium.org, Oct 10 2016

Erik had a strategy for passing the NSAppleEventDescriptor in/out via the OpenApplicationWithPath() call which I thought was pretty neat - https://codereview.chromium.org/2398853002/
Thanks! I'll look into it
Project Member

Comment 11 by bugdroid1@chromium.org, Oct 31 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/18e4d08f3ea5d85cce6676cd4dc6e893b7d7824c

commit 18e4d08f3ea5d85cce6676cd4dc6e893b7d7824c
Author: spqchan <spqchan@chromium.org>
Date: Mon Oct 31 16:43:06 2016

Prepare chrome_main_app_mode_mac.mm for 10.9
- Remove GetProcessForPID()
- Ping with the bundle identifier instead of the psn

BUG= 652563 

Review-Url: https://codereview.chromium.org/2416313002
Cr-Commit-Position: refs/heads/master@{#428741}

[modify] https://crrev.com/18e4d08f3ea5d85cce6676cd4dc6e893b7d7824c/chrome/app_shim/chrome_main_app_mode_mac.mm

Status: Fixed (was: Started)

Sign in to add a comment