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

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)

Created:
3 years, 8 months ago by michaelpg
Modified:
3 years, 8 months ago
Reviewers:
*benwells, *Elliot Glaysher, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, tfarina, rkc, Devlin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there This moves references to c/b/apps from their awkward place in c/b/extensions to a standalone source_set in c/b/apps/BUILD.gn. Now, c/b/apps explicitly depends on c/b/extensions, and c/b/extensions need not explicitlty depend on c/b/apps. (Some circular includes are still required, e.g. for app-specific API calls within c/b/extensions.) Apart from BUILD.gn files, the structural changes are: * moving {apps => chrome/browser/apps}/app_load_service.cc * adding chrome/browser/apps/browser_context_keyed_service_factories.* to handle startup/shutdown tasks The following gn checks now pass: * //apps (used to fail) * //chrome/browser/apps (newly added) The following gn checks used to pass, and still do: * //chrome/browser/extensions * //chrome/browser/ui The following gn checks still fail, but with fewer errors: * //chrome/browser BUG=679971, 159366 TBR=sky@chromium.org Review-Url: https://codereview.chromium.org/2789253003 Cr-Commit-Position: refs/heads/master@{#462314} Committed: https://chromium.googlesource.com/chromium/src/+/dbdcdcc7eb02d34200dca4a21f8528a7332f7d90

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 5

Patch Set 3 : remove ../apps/ silliness #

Patch Set 4 : non-component build fix, rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -460 lines) Patch
M apps/BUILD.gn View 1 2 3 3 chunks +9 lines, -9 lines 0 comments Download
M apps/DEPS View 1 3 chunks +4 lines, -13 lines 0 comments Download
D apps/app_load_service.h View 1 chunk +0 lines, -103 lines 0 comments Download
D apps/app_load_service.cc View 1 chunk +0 lines, -162 lines 0 comments Download
D apps/app_load_service_factory.h View 1 chunk +0 lines, -42 lines 0 comments Download
D apps/app_load_service_factory.cc View 1 chunk +0 lines, -63 lines 0 comments Download
M apps/browser_context_keyed_service_factories.h View 1 chunk +8 lines, -0 lines 0 comments Download
M apps/browser_context_keyed_service_factories.cc View 1 chunk +16 lines, -2 lines 0 comments Download
M apps/saved_files_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M apps/saved_files_service.cc View 4 chunks +12 lines, -21 lines 0 comments Download
M apps/saved_files_service_factory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M apps/saved_files_service_factory.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
A chrome/browser/apps/BUILD.gn View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A + chrome/browser/apps/app_load_service.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_load_service.cc View 2 chunks +3 lines, -4 lines 0 comments Download
A + chrome/browser/apps/app_load_service_factory.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/apps/app_load_service_factory.cc View 4 chunks +7 lines, -8 lines 0 comments Download
A chrome/browser/apps/browser_context_keyed_service_factories.h View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/apps/browser_context_keyed_service_factories.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/background/background_contents_service.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
michaelpg
Ben, PTAL - thanks!
3 years, 8 months ago (2017-04-03 22:46:58 UTC) #5
benwells
https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/BUILD.gn File chrome/browser/apps/BUILD.gn (right): https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/BUILD.gn#newcode11 chrome/browser/apps/BUILD.gn:11: "../apps/app_launch_for_metro_restart_win.cc", Why do you need the "../apps" on all ...
3 years, 8 months ago (2017-04-04 01:14:13 UTC) #6
michaelpg
https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/BUILD.gn File chrome/browser/apps/BUILD.gn (right): https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/BUILD.gn#newcode11 chrome/browser/apps/BUILD.gn:11: "../apps/app_launch_for_metro_restart_win.cc", On 2017/04/04 01:14:13, benwells wrote: > Why do ...
3 years, 8 months ago (2017-04-04 01:49:32 UTC) #7
benwells
lgtm https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/app_load_service.h File chrome/browser/apps/app_load_service.h (right): https://codereview.chromium.org/2789253003/diff/40001/chrome/browser/apps/app_load_service.h#newcode5 chrome/browser/apps/app_load_service.h:5: #ifndef CHROME_BROWSER_APPS_APP_LOAD_SERVICE_H_ On 2017/04/04 01:49:31, michaelpg wrote: > ...
3 years, 8 months ago (2017-04-04 03:41:40 UTC) #8
michaelpg
erg: PTAL for chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc Added sky as TBR for: chrome/browser/background/background_contents_service.cc chrome/browser/renderer_context_menu/render_view_context_menu.cc chrome/browser/ui/startup/startup_browser_creator.cc
3 years, 8 months ago (2017-04-05 00:31:05 UTC) #14
sky
LGTM
3 years, 8 months ago (2017-04-05 03:10:19 UTC) #15
Elliot Glaysher
lgtm
3 years, 8 months ago (2017-04-05 17:09:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2789253003/100001
3 years, 8 months ago (2017-04-06 00:04:58 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 01:41:45 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/dbdcdcc7eb02d34200dca4a21f85...

Powered by Google App Engine
This is Rietveld 408576698