|
Componentize script to generate UI string overrides mapping.
Change the API of the script to generate both the header and source file
and to take a list of header files as input (to allow overridding strings
from components/components_strings.grd).
The script is now generating a method CreateUIStringOverrider() and hides
the arrays in the implementation file and allow customization of the
namespace in which the function and code is generated.
Introduce a new target "chrome_ui_string_overrider_factory" in the gyp
build to mimic the same target in the gn build (compiles the source file
generated by the script).
Rename the script from to generate_ui_string_overrider.py to reflect the
new role of the script and move it to components/variations/service.
Introduce .gni file to help using the script by different embedders (don't
introduce .gypi files as it is much harder to share code for gyp).
Componentize ui_string_overrider_unittest.cc.
BUG= 534257
Committed: https://crrev.com/a213cebe6af1a80367336908d37f30ab6542940d
Cr-Commit-Position: refs/heads/master@{#352308}
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+483 lines, -428 lines) |
Patch |
 |
M |
chrome/app/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/BUILD.gn
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/metrics/metrics_services_manager.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/metrics/variations/BUILD.gn
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/metrics/variations/generate_resources_map.py
|
View
|
|
1 chunk |
+0 lines, -183 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/metrics/variations/generate_resources_map_unittest.py
|
View
|
|
1 chunk |
+0 lines, -93 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/metrics/variations/generated_resources_map.h
|
View
|
1
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/metrics/variations/ui_string_overrider_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_resources.gyp
|
View
|
|
1 chunk |
+25 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/variations/service/BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
components/variations/service/generate_ui_string_overrider.gni
|
View
|
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/variations/service/generate_ui_string_overrider.py
|
View
|
1
|
1 chunk |
+292 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/variations/service/generate_ui_string_overrider_unittest.py
|
View
|
|
4 chunks |
+51 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/variations/service/ui_string_overrider.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
components/variations/service/ui_string_overrider_unittest.cc
|
View
|
|
2 chunks |
+22 lines, -7 lines |
0 comments
|
Download
|
Total messages: 19 (5 generated)
|