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

Issue 2009983002: Guard dbus component and config with assert(use_dbus) (Closed)

Created:
4 years, 7 months ago by mbjorge
Modified:
4 years, 6 months ago
Reviewers:
slan, brettw
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Guard dbus component and config with assert(use_dbus) Often times dbus dependencies get added without proper guards. By guarding the component with assert(use_dbus) it forces proper guarding when depending on dbus. This prevents downstream breakages in chromecast. BUG=internal b/28962923 Committed: https://crrev.com/a12e5a5b7a36268c6196d0ab185a0d8f6cf1441c Cr-Commit-Position: refs/heads/master@{#396948}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Remove redundant configs; use assert #

Total comments: 4

Patch Set 3 : Remove unnecessary //dbus when //dbus:test_support exists #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -35 lines) Patch
M BUILD.gn View 2 chunks +7 lines, -2 lines 0 comments Download
M build/config/linux/BUILD.gn View 2 chunks +10 lines, -7 lines 0 comments Download
M build/config/linux/dbus/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M dbus/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
M device/media_transfer_protocol/BUILD.gn View 2 chunks +6 lines, -3 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
slan
Just nits. Thanks! https://codereview.chromium.org/2009983002/diff/1/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2009983002/diff/1/chrome/browser/BUILD.gn#newcode873 chrome/browser/BUILD.gn:873: configs += [ "//build/config/linux/dbus" ] nit: ...
4 years, 7 months ago (2016-05-25 22:35:19 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009983002/1
4 years, 7 months ago (2016-05-25 22:36:11 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/143408) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-05-25 22:44:03 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009983002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009983002/20001
4 years, 7 months ago (2016-05-25 22:48:45 UTC) #9
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 7 months ago (2016-05-25 22:48:48 UTC) #11
mbjorge
On 2016/05/25 at 22:44:03, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
4 years, 7 months ago (2016-05-25 22:50:26 UTC) #12
slan
lgtm
4 years, 7 months ago (2016-05-25 23:05:47 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009983002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009983002/20001
4 years, 7 months ago (2016-05-25 23:06:42 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/235704)
4 years, 7 months ago (2016-05-26 01:20:01 UTC) #19
brettw
lgtm https://codereview.chromium.org/2009983002/diff/20001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/2009983002/diff/20001/chrome/test/BUILD.gn#newcode1121 chrome/test/BUILD.gn:1121: "//dbus", You can remove this and just keep ...
4 years, 6 months ago (2016-05-31 20:22:37 UTC) #20
mbjorge
https://codereview.chromium.org/2009983002/diff/1/build/config/linux/dbus/BUILD.gn File build/config/linux/dbus/BUILD.gn (right): https://codereview.chromium.org/2009983002/diff/1/build/config/linux/dbus/BUILD.gn#newcode10 build/config/linux/dbus/BUILD.gn:10: if (use_dbus) { Changed this to an assert also ...
4 years, 6 months ago (2016-05-31 20:38:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009983002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009983002/40001
4 years, 6 months ago (2016-05-31 20:39:11 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-31 22:15:37 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 22:17:28 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a12e5a5b7a36268c6196d0ab185a0d8f6cf1441c
Cr-Commit-Position: refs/heads/master@{#396948}

Powered by Google App Engine
This is Rietveld 408576698