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

Issue 606953002: Move components/native_app_window to extensions/components/native_app_window (Closed)

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

Description

Move components/native_app_window to extensions/components/native_app_window There's currently a dependency cycle between gyp files: components.gyp and extensions.gyp. extensions.gyp depends on a number of components, and two components depend on exetensions.gyp. These are: - components/renderer_context_menu/ - components/native_app_window/ (more recently) renderer_context_menu has an "optional" extensions dependency, which can be skipped when ENABLE_EXTENSIONS is not defined. Still, it is necessary for renderer_context_menu.gyp to omit its extensions.gyp dependency and build as a static library. For native_app_window, since it is not compiled on Mac, the gyp circular check is not performed on the bots. This CL fixes the layering by adding a folder, src/extensions/components. Things here may depend on extensions, but not on other extensions/components folders in a way that creates a cycle. This also allows the benefits of a component-architecture to make sense of interdependencies between the ~1337 files under src/extensions. This layout also makes it clear that by depending on one of these components, a target is also depending on src/extensions. Currently, this is not clear. BUG=35878, 418455 TBR=reed@google.com Committed: https://crrev.com/344272ddd4ca47fb56fd6a1ca6a4f1418df2c426 Cr-Commit-Position: refs/heads/master@{#297952}

Patch Set 1 #

Patch Set 2 : add webvew, from gn check, chrome dep is transitive, fix OWNERS #

Patch Set 3 : fix misisng gn dep #

Patch Set 4 : patchfail/rebase #

Total comments: 12

Patch Set 5 : nuke extensions/components/BUILD.gn #

Patch Set 6 : extensions/components version, with fixed apps dep #

Total comments: 3

Patch Set 7 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -743 lines) Patch
M apps/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M apps/apps.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M athena/athena.gyp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M athena/extensions/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M athena/extensions/athena_native_app_window_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/BUILD.gn View 2 chunks +0 lines, -5 lines 0 comments Download
M components/OWNERS View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M components/components.gyp View 1 chunk +0 lines, -5 lines 0 comments Download
D components/native_app_window.gypi View 1 chunk +0 lines, -26 lines 0 comments Download
D components/native_app_window/BUILD.gn View 1 chunk +0 lines, -19 lines 0 comments Download
D components/native_app_window/DEPS View 1 chunk +0 lines, -10 lines 0 comments Download
D components/native_app_window/native_app_window_views.h View 1 2 3 1 chunk +0 lines, -197 lines 0 comments Download
D components/native_app_window/native_app_window_views.cc View 1 2 3 1 chunk +0 lines, -447 lines 0 comments Download
M extensions/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A extensions/components/DEPS View 1 chunk +7 lines, -0 lines 0 comments Download
A extensions/components/README View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A extensions/components/extensions_components.gyp View 1 chunk +19 lines, -0 lines 0 comments Download
A + extensions/components/native_app_window.gypi View 1 1 chunk +8 lines, -7 lines 0 comments Download
A + extensions/components/native_app_window/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/components/native_app_window/DEPS View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + extensions/components/native_app_window/OWNERS View 1 1 chunk +1 line, -0 lines 0 comments Download
A extensions/components/native_app_window/README View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + extensions/components/native_app_window/native_app_window_views.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/components/native_app_window/native_app_window_views.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (10 generated)
tapted
Hi, please take a look. This is a follow-up to http://crrev.com/295502 which added components/native_app_window for ...
6 years, 2 months ago (2014-09-29 06:03:31 UTC) #7
James Cook
jochen/oshima, thoughts? I believe the primary motivation in the original CL was to make these ...
6 years, 2 months ago (2014-09-29 16:36:18 UTC) #8
oshima
I believe we were going to exclude views impl of app window on mac. Didn't ...
6 years, 2 months ago (2014-09-29 18:47:15 UTC) #9
scheib
Is extensions/components/BUILD.gn needed? https://codereview.chromium.org/606953002/diff/100001/extensions/components/BUILD.gn File extensions/components/BUILD.gn (right): https://codereview.chromium.org/606953002/diff/100001/extensions/components/BUILD.gn#newcode11 extensions/components/BUILD.gn:11: group("extensions_components") { Where is this group ...
6 years, 2 months ago (2014-09-29 22:37:54 UTC) #10
tapted
On 2014/09/29 18:47:15, oshima wrote: > I believe we were going to exclude views impl ...
6 years, 2 months ago (2014-09-29 23:22:42 UTC) #11
tapted
https://codereview.chromium.org/606953002/diff/100001/apps/BUILD.gn File apps/BUILD.gn (right): https://codereview.chromium.org/606953002/diff/100001/apps/BUILD.gn#newcode71 apps/BUILD.gn:71: "//extensions/components/native_app_window", On 2014/09/29 23:22:41, tapted wrote: > On 2014/09/29 ...
6 years, 2 months ago (2014-09-29 23:25:53 UTC) #12
oshima
On 2014/09/29 23:22:42, tapted wrote: > On 2014/09/29 18:47:15, oshima wrote: > > I believe ...
6 years, 2 months ago (2014-09-30 00:06:28 UTC) #13
tapted
On 2014/09/30 00:06:28, oshima wrote: > On 2014/09/29 23:22:42, tapted wrote: > > On 2014/09/29 ...
6 years, 2 months ago (2014-09-30 04:02:46 UTC) #15
jochen (gone - plz use gerrit)
deleting code from //components lgtm
6 years, 2 months ago (2014-09-30 08:38:49 UTC) #16
scheib
extensions/DEPS can disallow use of components. extensions/components/README to explain the components concept. (e.g. see src/components/README). ...
6 years, 2 months ago (2014-09-30 21:50:53 UTC) #17
James Cook
native_app_window* lgtm https://codereview.chromium.org/606953002/diff/160001/chrome/chrome_browser_ui.gypi File chrome/chrome_browser_ui.gypi (right): https://codereview.chromium.org/606953002/diff/160001/chrome/chrome_browser_ui.gypi#newcode2741 chrome/chrome_browser_ui.gypi:2741: 'dependencies': [ '<(DEPTH)/extensions/components/extensions_components.gyp:native_app_window' ], nit: I would ...
6 years, 2 months ago (2014-09-30 22:27:32 UTC) #18
Ken Rockot(use gerrit already)
Somewhat impromptu drive-by commentary here, so take with a grain of salt and I hope ...
6 years, 2 months ago (2014-09-30 22:53:53 UTC) #20
oshima
On 2014/09/30 22:53:53, Ken Rockot wrote: > Somewhat impromptu drive-by commentary here, so take with ...
6 years, 2 months ago (2014-09-30 23:28:30 UTC) #21
tapted
On 2014/09/30 21:50:53, scheib wrote: > extensions/DEPS can disallow use of components. Done. > extensions/components/README ...
6 years, 2 months ago (2014-10-01 00:01:33 UTC) #22
tapted
On 2014/10/01 00:01:33, tapted wrote: > On 2014/09/30 23:28:30, oshima wrote: > > On 2014/09/30 ...
6 years, 2 months ago (2014-10-01 08:47:58 UTC) #23
Ken Rockot(use gerrit already)
First, thank you for trying that suggestion. I really like that native_app_window can indeed be ...
6 years, 2 months ago (2014-10-01 18:22:33 UTC) #24
oshima
On 2014/10/01 18:22:33, Ken Rockot wrote: > First, thank you for trying that suggestion. I ...
6 years, 2 months ago (2014-10-01 18:47:03 UTC) #25
tapted
I think I'm inclined to go with this CL (src/extensions/components). See rationale below. scheib: WDYT? ...
6 years, 2 months ago (2014-10-01 23:35:00 UTC) #26
James Cook
On 2014/10/01 23:35:00, tapted wrote: > I think I'm inclined to go with this CL ...
6 years, 2 months ago (2014-10-01 23:48:40 UTC) #27
scheib
Ken and James have done most of the refactoring, so their opinions out-weigh mine. I'm ...
6 years, 2 months ago (2014-10-01 23:51:06 UTC) #28
Ken Rockot(use gerrit already)
I concede that my concerns aren't strong enough to warrant blocking this work. I can ...
6 years, 2 months ago (2014-10-01 23:54:45 UTC) #29
scheib
extensions/* lgtm
6 years, 2 months ago (2014-10-02 15:25:45 UTC) #30
scheib
Remaining l g t m approval needed: - oshima: src/athena
6 years, 2 months ago (2014-10-02 15:27:45 UTC) #31
oshima
On 2014/10/02 15:27:45, scheib wrote: > Remaining l g t m approval needed: > - ...
6 years, 2 months ago (2014-10-02 16:58:16 UTC) #32
tapted
Thanks all! + reed@google.com TBR for Missing LGTM from OWNERS of dependencies added to DEPS: ...
6 years, 2 months ago (2014-10-02 23:40:02 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/606953002/180001
6 years, 2 months ago (2014-10-02 23:41:19 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:180001) as 98f56f380d9218c2229d8d231f59f807f47b5d3a
6 years, 2 months ago (2014-10-02 23:46:01 UTC) #37
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 23:46:43 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/344272ddd4ca47fb56fd6a1ca6a4f1418df2c426
Cr-Commit-Position: refs/heads/master@{#297952}

Powered by Google App Engine
This is Rietveld 408576698