|
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.
Committed: https://crrev.com/3118dde528359280fa0cb3c6fc5b6323e834c514
Cr-Commit-Position: refs/heads/master@{#361527}
Total comments: 46
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+525 lines, -38 lines) |
Patch |
|
A |
build/buildflag.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
build/buildflag_header.gni
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+138 lines, -0 lines |
0 comments
|
Download
|
|
A |
build/buildflag_header.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+118 lines, -0 lines |
0 comments
|
Download
|
|
M |
build/common.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
6 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
|
M |
build/config/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/config/features.gni
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/gypi_to_gn.py
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
A |
build/write_buildflag_header.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+95 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/component_loader.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profile.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/resources/BUILD.gn
|
View
|
1
2
|
12 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/options/content_settings_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
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
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_android.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_extensions.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_child.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_common.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_debugger.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_exe.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
A |
chrome/chrome_features.gypi
|
View
|
1
2
3
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_plugin.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_renderer.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_resources.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_utility.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
4 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/common/features.gni
|
View
|
1
2
3
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/pref_names.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/grit/grit/util.py
|
View
|
1
2
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/grit/grit_rule.gni
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
Total messages: 75 (28 generated)
|