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

Issue 355233002: Fix build when ENABLE_MANAGED_USERS is not defined (Closed)

Created:
6 years, 5 months ago by mckev
Modified:
5 years, 10 months ago
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, benjhayden+dwatch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dbeam+watch-options_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered, Marc Treib
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Visibility:
Public.

Description

Fix build when ENABLE_MANAGED_USERS is not defined This commit resolves build errors that occur when ENABLE_MANAGED_USERS is not defined: 1. Managed/supervised code for various components are now conditionally excluded in gyp files. 2. Added #ifdef guards in source files that include files in the chrome/browser/supervised_user folder. 3. Add missing include to supervised_users.h in files in the supervised_user folder to force compiler errors when not guarded properly. 4. Added an include in create_profile_handler.cc to web_ui.h, since it is indirectly included by the supervised_user* .h files. BUG=389611 Committed: https://crrev.com/a1a18dc36d89030a8fb6c514fcdf3c7a0153ee07 Cr-Commit-Position: refs/heads/master@{#297219}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Nits, minor refactoring #

Total comments: 29

Patch Set 3 : Address bauerb Comments #

Patch Set 4 : More bauerb comments #

Total comments: 8

Patch Set 5 : More bauerb Comments #

Total comments: 3

Patch Set 6 : Address jhawkins Comments #

Total comments: 6

Patch Set 7 : More jhawkins Comments #

Patch Set 8 : Rebased on ToT (finally) #

Patch Set 9 : Include missing browsertest .js file in chrome_tests.gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -742 lines) Patch
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_theme.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/themes/theme_properties.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 5 6 7 8 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/themes/theme_service_unittest.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 7 4 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 5 6 7 4 chunks +25 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 7 8 chunks +33 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 3 4 5 6 7 7 chunks +74 lines, -60 lines 0 comments Download
D chrome/browser/ui/views/profiles/avatar_label.h View 1 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/ui/views/profiles/avatar_label.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -129 lines 0 comments Download
A + chrome/browser/ui/views/profiles/supervised_user_avatar_label.h View 1 2 chunks +9 lines, -8 lines 0 comments Download
A + chrome/browser/ui/views/profiles/supervised_user_avatar_label.cc View 1 2 3 4 5 6 7 9 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui_browsertest.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui_browsertest.cc View 1 2 3 4 5 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui_browsertest.js View 1 2 3 4 5 6 7 2 chunks +1 line, -152 lines 0 comments Download
A + chrome/browser/ui/webui/downloads_ui_browsertest_base.js View 1 2 3 4 5 6 7 2 chunks +1 line, -64 lines 0 comments Download
A chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/downloads_ui_supervised_browsertest.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/create_profile_handler.h View 1 2 3 4 5 6 7 5 chunks +48 lines, -40 lines 0 comments Download
M chrome/browser/ui/webui/options/create_profile_handler.cc View 1 2 3 4 5 6 7 15 chunks +201 lines, -160 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (6 generated)
mckev
PTAL, thanks!
6 years, 5 months ago (2014-06-27 17:35:16 UTC) #1
James Hawkins
Which files are you asking me to review?
6 years, 5 months ago (2014-06-27 19:32:08 UTC) #2
mckev
On 2014/06/27 19:32:08, James Hawkins wrote: > Which files are you asking me to review? ...
6 years, 5 months ago (2014-06-27 20:36:50 UTC) #3
James Hawkins
On 2014/06/27 20:36:50, mckev wrote: > On 2014/06/27 19:32:08, James Hawkins wrote: > > Which ...
6 years, 5 months ago (2014-06-27 20:48:14 UTC) #4
James Hawkins
When is the ENABLE_MANAGED_USERS flag expected to be removed?
6 years, 5 months ago (2014-06-27 20:49:08 UTC) #5
mckev
On 2014/06/27 20:49:08, James Hawkins wrote: > When is the ENABLE_MANAGED_USERS flag expected to be ...
6 years, 5 months ago (2014-06-27 20:56:12 UTC) #6
James Hawkins
https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc File chrome/browser/ui/webui/options/create_profile_handler.cc (right): https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc#newcode96 chrome/browser/ui/webui/options/create_profile_handler.cc:96: #if defined(ENABLE_MANAGED_USERS) OK, you're not gonna like this. (At ...
6 years, 5 months ago (2014-06-27 21:09:57 UTC) #7
mckev
I updated the reviewers to be more granular. Please advise if that's appropriate. Notes to ...
6 years, 5 months ago (2014-06-27 21:10:18 UTC) #8
mckev
https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc File chrome/browser/ui/webui/options/create_profile_handler.cc (right): https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc#newcode96 chrome/browser/ui/webui/options/create_profile_handler.cc:96: #if defined(ENABLE_MANAGED_USERS) On 2014/06/27 21:09:57, James Hawkins wrote: > ...
6 years, 5 months ago (2014-06-27 21:14:10 UTC) #9
James Hawkins
On 2014/06/27 21:14:10, mckev wrote: > https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc > File chrome/browser/ui/webui/options/create_profile_handler.cc (right): > > https://codereview.chromium.org/355233002/diff/1/chrome/browser/ui/webui/options/create_profile_handler.cc#newcode96 > ...
6 years, 5 months ago (2014-06-27 21:25:58 UTC) #10
mckev
On 2014/06/27 21:25:58, James Hawkins wrote: > On 2014/06/27 21:14:10, mckev wrote: > > > ...
6 years, 5 months ago (2014-06-27 21:33:21 UTC) #11
James Hawkins
On 2014/06/27 21:33:21, mckev wrote: > On 2014/06/27 21:25:58, James Hawkins wrote: > > On ...
6 years, 5 months ago (2014-06-27 21:34:47 UTC) #12
Bernhard Bauer
+treib As a heads-up, Marc (cc'd) is also working on a refactoring here, which will ...
6 years, 5 months ago (2014-06-30 16:04:19 UTC) #13
mckev
On 2014/06/30 16:04:19, Bernhard Bauer wrote: > +treib > > As a heads-up, Marc (cc'd) ...
6 years, 5 months ago (2014-07-01 23:08:05 UTC) #14
samarth
lgtm for search
6 years, 5 months ago (2014-07-02 21:53:31 UTC) #15
James Hawkins
mckev: Ping when a new patch set is ready. If you don't hear back from ...
6 years, 5 months ago (2014-07-07 18:27:22 UTC) #16
mckev
On 2014/07/07 18:27:22, James Hawkins wrote: > mckev: Ping when a new patch set is ...
6 years, 5 months ago (2014-07-07 18:42:03 UTC) #17
mckev
OK all, PTAL. I responded to the nits and attempted to do a better job ...
6 years, 5 months ago (2014-07-11 18:27:54 UTC) #18
Bernhard Bauer
I think you forgot to upload a new patch set...
6 years, 5 months ago (2014-07-14 10:17:29 UTC) #19
mckev
On 2014/07/14 10:17:29, Bernhard Bauer wrote: > I think you forgot to upload a new ...
6 years, 5 months ago (2014-07-14 15:36:58 UTC) #20
Bernhard Bauer
https://codereview.chromium.org/355233002/diff/20001/chrome/browser/themes/theme_service_unittest.cc File chrome/browser/themes/theme_service_unittest.cc (right): https://codereview.chromium.org/355233002/diff/20001/chrome/browser/themes/theme_service_unittest.cc#newcode275 chrome/browser/themes/theme_service_unittest.cc:275: #endif It might be useful to add // defined(...) ...
6 years, 5 months ago (2014-07-14 16:39:06 UTC) #21
mckev
bauerb, thanks for the thorough review! I'll have some responses and an updated diff as ...
6 years, 5 months ago (2014-07-14 18:57:47 UTC) #22
mckev
bauerb: Resolved as much as I could in the latest patch set. Thanks in advance ...
6 years, 5 months ago (2014-07-14 23:50:03 UTC) #23
Bernhard Bauer
https://chromiumcodereview.appspot.com/355233002/diff/20001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://chromiumcodereview.appspot.com/355233002/diff/20001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode208 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:208: if (IsWithinAvatarMenuButton(hit_test, point) || On 2014/07/14 23:50:03, mckev wrote: ...
6 years, 5 months ago (2014-07-16 09:54:00 UTC) #24
mckev
On 2014/07/16 09:54:00, Bernhard Bauer wrote: > https://chromiumcodereview.appspot.com/355233002/diff/20001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc > File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): > > https://chromiumcodereview.appspot.com/355233002/diff/20001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode208 ...
6 years, 5 months ago (2014-07-18 17:45:09 UTC) #25
Bernhard Bauer
This is coming along nicely! :) https://codereview.chromium.org/355233002/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/355233002/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode208 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:208: return HTCLIENT; This ...
6 years, 5 months ago (2014-07-21 08:55:16 UTC) #26
mckev
On 2014/07/21 08:55:16, Bernhard Bauer wrote: > This is coming along nicely! :) Thanks! Sorry ...
6 years, 4 months ago (2014-07-29 17:59:43 UTC) #27
mckev
bauerb, new patch set uploaded, PTAL. (Also, ping to jhawkins, pkotwics, ben, and goodger.) Thanks! ...
6 years, 4 months ago (2014-08-05 01:09:14 UTC) #28
Bernhard Bauer
LGTM! Thanks for your patience with my nitpicking :)
6 years, 4 months ago (2014-08-05 08:33:36 UTC) #29
James Hawkins
https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h File chrome/browser/ui/webui/downloads_ui_browsertest.h (right): https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h#newcode25 chrome/browser/ui/webui/downloads_ui_browsertest.h:25: class DownloadsWebUIForSupervisedUsersTest : public DownloadsUIBrowserTest { I believe we ...
6 years, 4 months ago (2014-08-05 08:50:49 UTC) #30
mckev
On 2014/08/05 08:50:49, James Hawkins wrote: > https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h > File chrome/browser/ui/webui/downloads_ui_browsertest.h (right): > > https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h#newcode25 ...
6 years, 4 months ago (2014-08-05 23:52:37 UTC) #31
James Hawkins
On 2014/08/05 23:52:37, mckev wrote: > On 2014/08/05 08:50:49, James Hawkins wrote: > > > ...
6 years, 4 months ago (2014-08-15 14:37:43 UTC) #32
mckev
On 2014/08/15 14:37:43, James Hawkins wrote: > On 2014/08/05 23:52:37, mckev wrote: > > On ...
6 years, 4 months ago (2014-08-19 00:48:44 UTC) #33
mckev
On 2014/08/19 00:48:44, mckev wrote: > On 2014/08/15 14:37:43, James Hawkins wrote: > > On ...
6 years, 3 months ago (2014-08-25 20:28:02 UTC) #34
mckev
https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h File chrome/browser/ui/webui/downloads_ui_browsertest.h (right): https://codereview.chromium.org/355233002/diff/80001/chrome/browser/ui/webui/downloads_ui_browsertest.h#newcode25 chrome/browser/ui/webui/downloads_ui_browsertest.h:25: class DownloadsWebUIForSupervisedUsersTest : public DownloadsUIBrowserTest { On 2014/08/05 08:50:48, ...
6 years, 3 months ago (2014-08-25 20:28:47 UTC) #35
James Hawkins
https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h File chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h (right): https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h#newcode12 chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h:12: // InProcessBrowserTest overrides: nit: // InProcessBrowserTest implementation. https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc File ...
6 years, 3 months ago (2014-09-02 22:11:01 UTC) #36
mckev
jhawkins, PTAL, thanks! https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h File chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h (right): https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h#newcode12 chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h:12: // InProcessBrowserTest overrides: On 2014/09/02 22:11:01, ...
6 years, 3 months ago (2014-09-03 20:20:18 UTC) #37
James Hawkins
On 2014/09/03 20:20:18, mckev wrote: > jhawkins, PTAL, thanks! > > https://codereview.chromium.org/355233002/diff/100001/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h > File chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h ...
6 years, 3 months ago (2014-09-03 20:26:21 UTC) #38
pkotwicz
chrome/browser/themes LGTM
6 years, 3 months ago (2014-09-03 20:33:53 UTC) #39
Bernhard Bauer
Yay!
6 years, 3 months ago (2014-09-03 20:35:38 UTC) #40
mckev
On 2014/09/03 20:26:21, James Hawkins wrote: > On 2014/09/03 20:20:18, mckev wrote: > > jhawkins, ...
6 years, 3 months ago (2014-09-03 20:39:09 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mckev@amazon.com/355233002/120001
6 years, 3 months ago (2014-09-04 19:00:27 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/62802) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/51806) win_gpu ...
6 years, 3 months ago (2014-09-04 23:20:43 UTC) #45
mckev
On 2014/09/04 23:20:43, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-09-16 01:02:23 UTC) #46
mckev
> Just a quick update, I'm in the process of rebasing this to ToT. I'll ...
6 years, 2 months ago (2014-09-27 01:04:37 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/355233002/140001
6 years, 2 months ago (2014-09-27 05:54:21 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/18567)
6 years, 2 months ago (2014-09-27 07:05:27 UTC) #51
mckev
On 2014/09/27 07:05:27, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-09-27 19:53:22 UTC) #52
mckev
On 2014/09/27 19:53:22, mckev wrote: > On 2014/09/27 07:05:27, I haz the power (commit-bot) wrote: ...
6 years, 2 months ago (2014-09-29 17:52:26 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/355233002/160001
6 years, 2 months ago (2014-09-29 18:01:13 UTC) #55
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 3a48aff912fb805b4af3300dab87fd4c92afbbd7
6 years, 2 months ago (2014-09-29 18:52:48 UTC) #56
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 18:53:30 UTC) #57
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a1a18dc36d89030a8fb6c514fcdf3c7a0153ee07
Cr-Commit-Position: refs/heads/master@{#297219}

Powered by Google App Engine
This is Rietveld 408576698