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

Issue 1674233002: gn: simplify dbus logic in device/battery (Closed)

Created:
4 years, 10 months ago by Mostyn Bramley-Moore
Modified:
4 years, 10 months ago
Reviewers:
timvolodine
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gn: make device/battery build on embedded linux The logic for when to include the linux dbus implementation falls into three cases: chromeos, non-chromeos linux with dbus, and non-chromeos linux without dbus. By using just the is_chromeos, is_linux and use_dbus variables, this code will also build successfully on embedded linux targets. Committed: https://crrev.com/d9a25193e2021ec2cbfd18d5dd348c7380c43ace Cr-Commit-Position: refs/heads/master@{#374654}

Patch Set 1 #

Patch Set 2 : convert to an else clause of is_chromeos #

Patch Set 3 : refactor and simplify #

Total comments: 2

Patch Set 4 : revert refactoring #

Patch Set 5 : make the linux but not chromeos clause more explicit #

Total comments: 2

Patch Set 6 : split into a separate if block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M device/battery/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674233002/1
4 years, 10 months ago (2016-02-08 16:44:40 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/140320)
4 years, 10 months ago (2016-02-08 16:52:39 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674233002/20001
4 years, 10 months ago (2016-02-08 17:06:09 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 17:46:15 UTC) #8
Mostyn Bramley-Moore
@timvolodine: please take a look at this GN fixup.
4 years, 10 months ago (2016-02-08 17:50:45 UTC) #10
timvolodine
On 2016/02/08 17:50:45, Mostyn Bramley-Moore wrote: > @timvolodine: please take a look at this GN ...
4 years, 10 months ago (2016-02-08 19:02:55 UTC) #11
Mostyn Bramley-Moore
On 2016/02/08 19:02:55, timvolodine wrote: > actually i think the desktop_linux was intentional, looking at ...
4 years, 10 months ago (2016-02-08 19:19:22 UTC) #12
Mostyn Bramley-Moore
Patchset 3 shows the refactored option.
4 years, 10 months ago (2016-02-08 20:38:31 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674233002/40001
4 years, 10 months ago (2016-02-08 20:43:38 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 21:41:42 UTC) #19
timvolodine
On 2016/02/08 19:19:22, Mostyn Bramley-Moore wrote: > On 2016/02/08 19:02:55, timvolodine wrote: > > actually ...
4 years, 10 months ago (2016-02-09 13:58:02 UTC) #20
timvolodine
https://codereview.chromium.org/1674233002/diff/40001/device/battery/BUILD.gn File device/battery/BUILD.gn (left): https://codereview.chromium.org/1674233002/diff/40001/device/battery/BUILD.gn#oldcode51 device/battery/BUILD.gn:51: if (is_desktop_linux) { maybe just use "if (is_linux && ...
4 years, 10 months ago (2016-02-09 13:59:05 UTC) #21
Mostyn Bramley-Moore
> right, I didn't realize the current gn doesn't cover some linux systems. if not ...
4 years, 10 months ago (2016-02-09 21:38:51 UTC) #22
timvolodine
https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn File device/battery/BUILD.gn (right): https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn#newcode49 device/battery/BUILD.gn:49: } else if (is_linux && !is_chromeos) { can we ...
4 years, 10 months ago (2016-02-10 12:40:40 UTC) #23
Mostyn Bramley-Moore
https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn File device/battery/BUILD.gn (right): https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn#newcode49 device/battery/BUILD.gn:49: } else if (is_linux && !is_chromeos) { On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 13:01:51 UTC) #24
timvolodine
On 2016/02/10 13:01:51, Mostyn Bramley-Moore wrote: > https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn > File device/battery/BUILD.gn (right): > > https://codereview.chromium.org/1674233002/diff/80001/device/battery/BUILD.gn#newcode49 ...
4 years, 10 months ago (2016-02-10 13:05:36 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674233002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674233002/100001
4 years, 10 months ago (2016-02-10 13:05:59 UTC) #27
Mostyn Bramley-Moore
Thanks, description updated.
4 years, 10 months ago (2016-02-10 13:20:06 UTC) #30
Mostyn Bramley-Moore
Thanks, description updated.
4 years, 10 months ago (2016-02-10 13:20:07 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-10 14:16:15 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674233002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674233002/100001
4 years, 10 months ago (2016-02-10 14:17:31 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-10 14:24:08 UTC) #37
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 14:25:20 UTC) #39
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d9a25193e2021ec2cbfd18d5dd348c7380c43ace
Cr-Commit-Position: refs/heads/master@{#374654}

Powered by Google App Engine
This is Rietveld 408576698