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

Issue 501303002: [Mac] Make app shims load the same framework version as the running Chrome process. (Closed)

Created:
6 years, 4 months ago by jackhou1
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Mac] Make app shims load the same framework version as the running Chrome process. When a new version of Chrome has been downloaded but the old version is still running, any app shims that start will load the new framework version. This is problematic as the IPC codes (See ipc_message_start.h) may not match. With this CL, app shims will check a version file written by the Chrome process and load the corresponding framework version. This also increments kCurrentAppShortcutsVersion, which causes all app shims to be rebuilt. This also moves AppModeChromeLocatorTest to browser_tests. It's not really necessary for them to have their own target (app_mode_app_tests), and this way they actually get run. BUG=405347 Committed: https://crrev.com/aeac008d6856655cda70806584e74c6e67c4ca62 Cr-Commit-Position: refs/heads/master@{#292563}

Patch Set 1 #

Patch Set 2 : Actually implement. (Patch Set 1 was WIP) #

Patch Set 3 : Add a comment. #

Total comments: 17

Patch Set 4 : Remove app_mode_app_tests. #

Patch Set 5 : Address comments. #

Total comments: 5

Patch Set 6 : Address comments #

Total comments: 2

Patch Set 7 : Attempts to get test working on bots. #

Patch Set 8 : Make ChromeLocatorTest a browser test. #

Total comments: 1

Patch Set 9 : Remove superfluous #includes. #

Patch Set 10 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -136 lines) Patch
M apps/app_shim/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_manager_browsertest_mac.mm View 1 2 3 4 5 chunks +14 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_manager_mac.mm View 1 2 3 4 4 chunks +26 lines, -6 lines 0 comments Download
M chrome/app/app_mode_loader_mac.mm View 1 2 3 4 5 6 7 8 9 5 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/apps/shortcut_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -30 lines 0 comments Download
M chrome/common/mac/app_mode_chrome_locator.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/common/mac/app_mode_chrome_locator.mm View 1 2 3 4 5 4 chunks +23 lines, -17 lines 0 comments Download
A chrome/common/mac/app_mode_chrome_locator_browsertest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +140 lines, -0 lines 0 comments Download
D chrome/common/mac/app_mode_chrome_locator_unittest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -71 lines 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jackhou1
jackhou@chromium.org changed reviewers: + tapted@chromium.org
6 years, 4 months ago (2014-08-26 05:36:18 UTC) #1
jackhou1
tapted, could you take a look? I'm hoping to get this merged into M38, so ...
6 years, 4 months ago (2014-08-26 05:36:18 UTC) #2
tapted
I think the plan is good. One real concern below. Also we'll need a security ...
6 years, 3 months ago (2014-08-26 07:12:48 UTC) #3
jackhou1
Deleted app_mode_app_tests since it doesn't compile any more. Also it wasn't as much work as ...
6 years, 3 months ago (2014-08-26 08:15:14 UTC) #4
jackhou1
jackhou@chromium.org changed reviewers: + rsesek@chromium.org
6 years, 3 months ago (2014-08-26 08:16:56 UTC) #5
jackhou1
rsesek, could you please review this for security?
6 years, 3 months ago (2014-08-26 08:16:56 UTC) #6
tapted
https://codereview.chromium.org/501303002/diff/40001/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://codereview.chromium.org/501303002/diff/40001/chrome/app/app_mode_loader_mac.mm#newcode111 chrome/app/app_mode_loader_mac.mm:111: cr_version_str.value(), On 2014/08/26 08:15:14, jackhou1 wrote: > On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 08:43:47 UTC) #7
Robert Sesek
LGTM https://codereview.chromium.org/501303002/diff/80001/chrome/common/mac/app_mode_chrome_locator.mm File chrome/common/mac/app_mode_chrome_locator.mm (right): https://codereview.chromium.org/501303002/diff/80001/chrome/common/mac/app_mode_chrome_locator.mm#newcode30 chrome/common/mac/app_mode_chrome_locator.mm:30: arrayWithObjects:bundle_path, @"Contents", @"Versions", version, nil]; You can use ...
6 years, 3 months ago (2014-08-26 16:41:08 UTC) #8
jackhou1
https://codereview.chromium.org/501303002/diff/40001/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://codereview.chromium.org/501303002/diff/40001/chrome/app/app_mode_loader_mac.mm#newcode111 chrome/app/app_mode_loader_mac.mm:111: cr_version_str.value(), On 2014/08/26 08:43:47, tapted wrote: > On 2014/08/26 ...
6 years, 3 months ago (2014-08-27 03:04:52 UTC) #9
tapted
It would be good to double-check the PID, but I guess it's a super-remote possibility. ...
6 years, 3 months ago (2014-08-27 03:51:16 UTC) #10
jackhou1
https://codereview.chromium.org/501303002/diff/100001/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://codereview.chromium.org/501303002/diff/100001/chrome/app/app_mode_loader_mac.mm#newcode96 chrome/app/app_mode_loader_mac.mm:96: } On 2014/08/27 03:51:16, tapted wrote: > // TODO(): ...
6 years, 3 months ago (2014-08-28 01:04:56 UTC) #11
jackhou1
jackhou@chromium.org changed reviewers: + sky@chromium.org
6 years, 3 months ago (2014-08-28 01:06:07 UTC) #12
jackhou1
sky, could you please review for OWNERS of: chrome/app/ chrome/common/chrome_version_info.h
6 years, 3 months ago (2014-08-28 01:06:07 UTC) #13
sky
sky@chromium.org changed reviewers: + thakis@chromium.org - sky@chromium.org
6 years, 3 months ago (2014-08-28 13:24:17 UTC) #14
sky
Please get a mac owner for this, maybe thakis? Also, you didn't change: chrome/common/chrome_version_info.h
6 years, 3 months ago (2014-08-28 13:24:17 UTC) #15
jackhou1
jackhou@chromium.org changed reviewers: + avi@chromium.org
6 years, 3 months ago (2014-08-28 22:41:57 UTC) #16
jackhou1
avi, would you mind reviewing this while thakis is away? chrome/app/app_mode_loader_mac.mm
6 years, 3 months ago (2014-08-28 22:41:57 UTC) #17
Avi (use Gerrit)
app_mode_loader_mac lgtm with nit https://codereview.chromium.org/501303002/diff/140001/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://codereview.chromium.org/501303002/diff/140001/chrome/app/app_mode_loader_mac.mm#newcode15 chrome/app/app_mode_loader_mac.mm:15: #import <Foundation/Foundation.h> If you import ...
6 years, 3 months ago (2014-08-28 23:36:20 UTC) #18
Avi (use Gerrit)
On 2014/08/28 22:41:57, jackhou1 wrote: > avi, would you mind reviewing this while thakis is ...
6 years, 3 months ago (2014-08-28 23:37:04 UTC) #19
jackhou1
thakis, could you please stamp this now that avi has reviewed it?
6 years, 3 months ago (2014-08-28 23:58:24 UTC) #20
Nico
lgtm
6 years, 3 months ago (2014-08-29 00:52:16 UTC) #21
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 3 months ago (2014-08-29 00:57:18 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/501303002/180001
6 years, 3 months ago (2014-08-29 00:58:32 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-29 02:43:24 UTC) #24
commit-bot: I haz the power
Committed patchset #10 (id:180001) as ba348f9344e7cecad4b3e899dfeb9eff84a41a4c
6 years, 3 months ago (2014-08-29 03:23:18 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:05:57 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/aeac008d6856655cda70806584e74c6e67c4ca62
Cr-Commit-Position: refs/heads/master@{#292563}

Powered by Google App Engine
This is Rietveld 408576698