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

Issue 585123004: Mac: Give app_shim code a nicer home (Closed)

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

Description

Mac: Give app_shim code a nicer home App Shims are small .app bundles for Mac, which run in their own process to provide packaged apps with an OSX Dock icon, using IPC to communicate with the browser process. Most of the app_shim code currently lives in src/apps/app_shim, but app shims are very much a browser feature, so it doesn't belong there. It's causing DEPS problems for athena efforts. This CL moves most of apps/app_shim to chrome/browser/apps/app_shim (c/b/apps didn't exist until a few months after src/apps/app_shim). The shim itself (i.e. chrome_main_app_mode_mac.mm) doesn't run in the browser process - it has its own, shim process. Those parts are moved to a new folder: src/chrome/app_shim, consolidating files currently spread across src/apps/app_shim and src/chrome/app. app_shim_launch.h and app_shim_messages.h are used in both the shim process and the browser process. They're moved to chrome/common/mac. Summary of changes: {apps => chrome/browser/apps}/app_shim/* except {apps => chrome}/app_shim/chrome_main_app_mode_mac.mm {apps/app_shim => chrome/common/mac}/app_shim_launch.h {apps/app_shim => chrome/common/mac}/app_shim_messages.h app_shim.gypi renamed to browser_app_shim.gypi chrome/app_shim/app_shim.gypi added and chrome/{app => app_shim}/app_mode-Info.plist chrome/{app => app_shim}/app_mode_loader_mac.mm - apps/app_shim/DEPS now just generated_resources.h - 'app_mode_app' target moved from chrome.gyp to app_shim.gypi BUG=266705 Committed: https://crrev.com/63829f711468110d04c7464acf92c3e7ab3c13d7 Cr-Commit-Position: refs/heads/master@{#296576}

Patch Set 1 #

Patch Set 2 : various cleanups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -4278 lines) Patch
D apps/app_shim/DEPS View 1 chunk +0 lines, -19 lines 0 comments Download
D apps/app_shim/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
D apps/app_shim/app_shim.gypi View 1 chunk +0 lines, -36 lines 0 comments Download
D apps/app_shim/app_shim_handler_mac.h View 1 chunk +0 lines, -96 lines 0 comments Download
D apps/app_shim/app_shim_handler_mac.cc View 1 chunk +0 lines, -156 lines 0 comments Download
D apps/app_shim/app_shim_host_mac.h View 1 chunk +0 lines, -86 lines 0 comments Download
D apps/app_shim/app_shim_host_mac.cc View 1 chunk +0 lines, -130 lines 0 comments Download
D apps/app_shim/app_shim_host_mac_unittest.cc View 1 chunk +0 lines, -175 lines 0 comments Download
D apps/app_shim/app_shim_host_manager_browsertest_mac.mm View 1 chunk +0 lines, -287 lines 0 comments Download
D apps/app_shim/app_shim_host_manager_mac.h View 1 chunk +0 lines, -73 lines 0 comments Download
D apps/app_shim/app_shim_host_manager_mac.mm View 1 chunk +0 lines, -168 lines 0 comments Download
D apps/app_shim/app_shim_interactive_uitest_mac.mm View 1 chunk +0 lines, -399 lines 0 comments Download
D apps/app_shim/app_shim_launch.h View 1 chunk +0 lines, -57 lines 0 comments Download
D apps/app_shim/app_shim_messages.h View 1 chunk +0 lines, -71 lines 0 comments Download
D apps/app_shim/app_shim_quit_interactive_uitest_mac.mm View 1 chunk +0 lines, -132 lines 0 comments Download
D apps/app_shim/chrome_main_app_mode_mac.mm View 1 chunk +0 lines, -693 lines 0 comments Download
D apps/app_shim/extension_app_shim_handler_mac.h View 1 chunk +0 lines, -159 lines 0 comments Download
D apps/app_shim/extension_app_shim_handler_mac.cc View 1 chunk +0 lines, -557 lines 0 comments Download
D apps/app_shim/extension_app_shim_handler_mac_unittest.cc View 1 chunk +0 lines, -396 lines 0 comments Download
D apps/app_shim/test/app_shim_host_manager_test_api_mac.h View 1 chunk +0 lines, -38 lines 0 comments Download
D apps/app_shim/test/app_shim_host_manager_test_api_mac.cc View 1 chunk +0 lines, -26 lines 0 comments Download
D apps/app_shim/unix_domain_socket_acceptor.h View 1 chunk +0 lines, -57 lines 0 comments Download
D apps/app_shim/unix_domain_socket_acceptor.cc View 1 chunk +0 lines, -90 lines 0 comments Download
D chrome/app/app_mode-Info.plist View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/app/app_mode_loader_mac.mm View 1 chunk +0 lines, -206 lines 0 comments Download
A chrome/app_shim/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/app_shim/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/app_shim/app_mode-Info.plist View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/app_shim/app_mode_loader_mac.mm View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/app_shim/app_shim.gypi View 1 chunk +82 lines, -0 lines 0 comments Download
A + chrome/app_shim/chrome_main_app_mode_mac.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 2 chunks +1 line, -1 line 0 comments Download
A chrome/browser/apps/app_shim/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_handler_mac.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_handler_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_mac.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_mac.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_mac_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_manager_browsertest_mac.mm View 1 chunk +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_manager_mac.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/app_shim_quit_interactive_uitest_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/apps/app_shim/browser_app_shim.gypi View 2 chunks +5 lines, -10 lines 0 comments Download
A + chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/extension_app_shim_handler_mac_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_shim/unix_domain_socket_acceptor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_platform_part_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac_interactive_uitest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 chunks +2 lines, -55 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/common_message_generator.h View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/common/mac/app_shim_launch.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/common/mac/app_shim_messages.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
tapted
Hi Jack - please take a look
6 years, 3 months ago (2014-09-22 07:57:19 UTC) #2
jackhou1
On 2014/09/22 07:57:19, tapted wrote: > Hi Jack - please take a look lgtm Should ...
6 years, 3 months ago (2014-09-23 03:11:39 UTC) #3
tapted
On 2014/09/23 03:11:39, jackhou1 wrote: > On 2014/09/22 07:57:19, tapted wrote: > > Hi Jack ...
6 years, 3 months ago (2014-09-23 06:47:16 UTC) #4
tapted
+sky,rsesek,palmer: sky: Please review changes in src/chrome rsesek: Please review changes in src/chrome/common/mac and (general ...
6 years, 3 months ago (2014-09-23 07:02:21 UTC) #6
tapted
+palmer (actually) for IPC (#include change, but also a file move. Last file in the ...
6 years, 3 months ago (2014-09-23 07:04:16 UTC) #8
palmer
Rubberstamp LGTM
6 years, 3 months ago (2014-09-23 20:40:45 UTC) #9
sky
LGTM
6 years, 3 months ago (2014-09-23 23:12:12 UTC) #11
Robert Sesek
LGTM
6 years, 3 months ago (2014-09-24 14:58:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585123004/20001
6 years, 3 months ago (2014-09-24 23:18:54 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 568d74e454d168de42e72a45769afde0217c76ef
6 years, 3 months ago (2014-09-24 23:51:01 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 23:51:42 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/63829f711468110d04c7464acf92c3e7ab3c13d7
Cr-Commit-Position: refs/heads/master@{#296576}

Powered by Google App Engine
This is Rietveld 408576698