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

Issue 1469383005: New build flag system, convert Google Now flag (Closed)

Created:
5 years ago by brettw
Modified:
4 years, 11 months ago
Reviewers:
Mark Mentovai, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, chromium-apps-reviews_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

New build flag system, convert Google Now flag This generates headers with build flags rather than forcing them all to be global. It includes an accessor wrapper so that references to the flags will fail if the proper header is not included. Converts Google Now to use this and remove the global google now define and grit define. Adds support for grit define values of "true" and "false" for ease of integration with GN (they are mapped to the corresponding Python "True" and "False"). Adds dependencies from the main gyp targets to the new generated feature define target. Since GYP only does hard dependencies one level, this should reduce the chance that somebody adds more of these cases and forces to add a dependency. Reland of https://codereview.chromium.org/1475513006/ Reland of https://codereview.chromium.org/1458653002/ TBR=mark@chromium.org Committed: https://crrev.com/06c2ba3165d8b02364bf818d5028a7cb4fe48ac0 Cr-Commit-Position: refs/heads/master@{#361854}

Patch Set 1 #

Patch Set 2 : constants -> features dep #

Patch Set 3 : make separate gyp to avoid cycle #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -38 lines) Patch
A build/buildflag.h View 1 chunk +47 lines, -0 lines 0 comments Download
A build/buildflag_header.gni View 1 chunk +138 lines, -0 lines 0 comments Download
A build/buildflag_header.gypi View 1 chunk +118 lines, -0 lines 0 comments Download
M build/common.gypi View 6 chunks +0 lines, -12 lines 0 comments Download
M build/config/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
M build/config/features.gni View 1 chunk +0 lines, -2 lines 0 comments Download
M build/gypi_to_gn.py View 1 chunk +4 lines, -2 lines 0 comments Download
A build/write_buildflag_header.py View 1 chunk +95 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/BUILD.gn View 12 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_android.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_child.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_debugger.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 1 chunk +4 lines, -1 line 0 comments Download
A chrome/chrome_features.gyp View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/chrome_features.gypi View 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/chrome_plugin.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_resources.gyp View 1 chunk +6 lines, -0 lines 1 comment Download
M chrome/chrome_tests.gypi View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
A chrome/common/features.gni View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common_constants.gyp View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M tools/grit/grit/util.py View 2 chunks +4 lines, -3 lines 0 comments Download
M tools/grit/grit_rule.gni View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
brettw
PS1 is previous landing, PS2 is added dependencies from chrome constants.
5 years ago (2015-11-25 23:14:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469383005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469383005/20001
5 years ago (2015-11-25 23:15:55 UTC) #5
Mark Mentovai
LGTM
5 years ago (2015-11-26 00:42:40 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on ...
5 years ago (2015-11-26 01:21:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469383005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469383005/20001
5 years ago (2015-11-26 01:27:22 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/99568) ios_rel_device_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, ...
5 years ago (2015-11-26 03:30:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469383005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469383005/40001
5 years ago (2015-11-26 06:58:14 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-11-26 09:21:33 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/06c2ba3165d8b02364bf818d5028a7cb4fe48ac0 Cr-Commit-Position: refs/heads/master@{#361854}
5 years ago (2015-11-26 09:22:37 UTC) #19
Dan Beam
4 years, 11 months ago (2015-12-31 03:08:38 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/1469383005/diff/40001/chrome/chrome_resources...
File chrome/chrome_resources.gyp (right):

https://codereview.chromium.org/1469383005/diff/40001/chrome/chrome_resources...
chrome/chrome_resources.gyp:197: 'grit_additional_defines': [
this blocks <@(chrome_grit_defines) (and hence: -D "enable_google_now=1") from
being passed along while generating browser_resources.grd.

noticed while scraping through out/Release/obj/chrome/chrome_resources.ninja to
determine why my BUILDFLAG(use_vulcanize) CL[1] wasn't working :(

[1] https://codereview.chromium.org/1494253003/

Powered by Google App Engine
This is Rietveld 408576698