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

Issue 15269003: Refactor extension handling code from AppShimHost into ExtensionAppShimHandler. (Closed)

Created:
7 years, 7 months ago by jackhou1
Modified:
7 years, 6 months ago
CC:
chromium-reviews, tfarina, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Refactor extension handling code from AppShimHost into ExtensionAppShimHandler. AppShimHost is now confined to interacting with the app shim and passing events to AppShimHandlers. ExtensionAppShimHandler becomes the default handler for app shim events. BUG=168080 TEST=There should be no behavior change with this refactor. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202791

Patch Set 1 #

Patch Set 2 : Add default handler to AppShimHandler. Fix test. #

Total comments: 75

Patch Set 3 : Address comments. Instantiate ExtensionAppShimHandler in AppShimHostManager. #

Total comments: 36

Patch Set 4 : Address comments #

Patch Set 5 : Change to map of Hosts (no ObserverList). Improve test. #

Total comments: 9

Patch Set 6 : Address comments #

Patch Set 7 : Sync and rebase #

Patch Set 8 : Update app_list_service_mac_browsertest.mm #

Patch Set 9 : Sync and rebase #

Patch Set 10 : Sync and rebase #

Patch Set 11 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -142 lines) Patch
M apps/app_shim/app_shim_handler_mac.h View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M apps/app_shim/app_shim_handler_mac.cc View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.h View 1 2 3 5 chunks +3 lines, -17 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.cc View 1 2 3 4 5 6 4 chunks +21 lines, -96 lines 0 comments Download
M apps/app_shim/app_shim_host_mac_unittest.cc View 1 2 3 5 chunks +4 lines, -22 lines 0 comments Download
M apps/app_shim/app_shim_host_manager_mac.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M apps/app_shim/app_shim_host_manager_mac.mm View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
A apps/app_shim/extension_app_shim_handler_mac.h View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A apps/app_shim/extension_app_shim_handler_mac.cc View 1 2 3 4 5 6 1 chunk +130 lines, -0 lines 0 comments Download
A apps/app_shim/extension_app_shim_handler_mac_unittest.cc View 1 2 3 4 5 1 chunk +139 lines, -0 lines 0 comments Download
M apps/apps.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac_browsertest.mm View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jackhou1
I think this is ready, except for: Where should extension_app_shim_handler live? And what should instantiate ...
7 years, 7 months ago (2013-05-21 01:10:54 UTC) #1
tapted
On 2013/05/21 01:10:54, jackhou1 wrote: > I think this is ready, except for: > Where ...
7 years, 7 months ago (2013-05-21 06:15:36 UTC) #2
jackhou1
https://codereview.chromium.org/15269003/diff/2001/apps/app_shim/app_shim_handler_mac.cc File apps/app_shim/app_shim_handler_mac.cc (right): https://codereview.chromium.org/15269003/diff/2001/apps/app_shim/app_shim_handler_mac.cc#newcode40 apps/app_shim/app_shim_handler_mac.cc:40: AppShimHandler* old_default_handler = default_handler_; On 2013/05/21 06:15:37, tapted wrote: ...
7 years, 7 months ago (2013-05-22 23:54:44 UTC) #3
tapted
https://codereview.chromium.org/15269003/diff/2001/apps/app_shim/extension_app_shim_handler_mac.cc File apps/app_shim/extension_app_shim_handler_mac.cc (right): https://codereview.chromium.org/15269003/diff/2001/apps/app_shim/extension_app_shim_handler_mac.cc#newcode49 apps/app_shim/extension_app_shim_handler_mac.cc:49: registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED, On 2013/05/22 23:54:44, jackhou1 wrote: > On ...
7 years, 7 months ago (2013-05-23 02:29:39 UTC) #4
jackhou1
As discussed, changed this to just a map of AppShimHandler::Host. Added testing for multiple Hosts ...
7 years, 7 months ago (2013-05-23 06:10:19 UTC) #5
tapted
sweet! lgtm with a few nits https://codereview.chromium.org/15269003/diff/28001/apps/app_shim/app_shim_host_manager_mac.h File apps/app_shim/app_shim_host_manager_mac.h (right): https://codereview.chromium.org/15269003/diff/28001/apps/app_shim/app_shim_host_manager_mac.h#newcode9 apps/app_shim/app_shim_host_manager_mac.h:9: #include "base/mac/scoped_cftyperef.h" while ...
7 years, 7 months ago (2013-05-23 07:03:11 UTC) #6
jackhou1
https://codereview.chromium.org/15269003/diff/28001/apps/app_shim/app_shim_host_manager_mac.h File apps/app_shim/app_shim_host_manager_mac.h (right): https://codereview.chromium.org/15269003/diff/28001/apps/app_shim/app_shim_host_manager_mac.h#newcode9 apps/app_shim/app_shim_host_manager_mac.h:9: #include "base/mac/scoped_cftyperef.h" On 2013/05/23 07:03:11, tapted wrote: > while ...
7 years, 7 months ago (2013-05-24 00:12:27 UTC) #7
jackhou1
benwells, could you please review for OWNERS?
7 years, 7 months ago (2013-05-26 23:11:08 UTC) #8
benwells
apps/apps.gypi lgtm
7 years, 6 months ago (2013-05-28 00:36:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/15269003/85001
7 years, 6 months ago (2013-05-28 00:39:55 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118826
7 years, 6 months ago (2013-05-28 02:25:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/15269003/99001
7 years, 6 months ago (2013-05-29 01:42:39 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 07:19:26 UTC) #13
Message was sent while issue was closed.
Change committed as 202791

Powered by Google App Engine
This is Rietveld 408576698