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

Issue 1664113002: C++->Java string constants auto-generator (Closed)

Created:
4 years, 10 months ago by lshang
Modified:
4 years, 5 months ago
Reviewers:
raymes, agrieve
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, jbudorick+watch_chromium.org, raymes+watch_chromium.org, mikecase+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@contentsettingstype_enum_2_string
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

C++->Java string constants auto-generator This adds a script for generating Java constants for C++ strings. BUG=526932

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase and fix patch failure #

Patch Set 4 : try to set upstream to master to avoid patch failure #

Patch Set 5 : add tests #

Total comments: 14

Patch Set 6 : rebase #

Patch Set 7 : addressing review comments #

Patch Set 8 : try to set upstream to master for test #

Patch Set 9 : set upstream back to ContentSettingsType-enum-to-string #

Total comments: 16

Patch Set 10 : address review comments #

Patch Set 11 : remove changes related to ContentSettingsType #

Total comments: 4

Patch Set 12 : address review comments #

Total comments: 1

Patch Set 13 : minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -165 lines) Patch
A + build/android/gyp/java_cpp_string.py View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +104 lines, -155 lines 0 comments Download
A build/android/gyp/java_cpp_string_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +252 lines, -0 lines 0 comments Download
A + build/android/java_cpp_string.gypi View 3 chunks +10 lines, -10 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
lshang
PTAL thanks!
4 years, 10 months ago (2016-02-08 10:16:10 UTC) #5
raymes
https://codereview.chromium.org/1664113002/diff/80001/build/android/gyp/java_cpp_string.py File build/android/gyp/java_cpp_string.py (right): https://codereview.chromium.org/1664113002/diff/80001/build/android/gyp/java_cpp_string.py#newcode18 build/android/gyp/java_cpp_string.py:18: class StringDefinition(object): I guess this is actually a list ...
4 years, 10 months ago (2016-02-16 00:58:21 UTC) #6
lshang
Raymes, could you PTALA? Thanks! https://codereview.chromium.org/1664113002/diff/80001/build/android/gyp/java_cpp_string.py File build/android/gyp/java_cpp_string.py (right): https://codereview.chromium.org/1664113002/diff/80001/build/android/gyp/java_cpp_string.py#newcode18 build/android/gyp/java_cpp_string.py:18: class StringDefinition(object): On 2016/02/16 ...
4 years, 10 months ago (2016-02-16 23:00:20 UTC) #7
raymes
https://codereview.chromium.org/1664113002/diff/220001/build/android/gyp/java_cpp_string.py File build/android/gyp/java_cpp_string.py (right): https://codereview.chromium.org/1664113002/diff/220001/build/android/gyp/java_cpp_string.py#newcode110 build/android/gyp/java_cpp_string.py:110: if self._current_multiline_string_key: Perhaps make a comment here about what's ...
4 years, 10 months ago (2016-02-18 02:22:32 UTC) #8
lshang
https://codereview.chromium.org/1664113002/diff/220001/build/android/gyp/java_cpp_string.py File build/android/gyp/java_cpp_string.py (right): https://codereview.chromium.org/1664113002/diff/220001/build/android/gyp/java_cpp_string.py#newcode110 build/android/gyp/java_cpp_string.py:110: if self._current_multiline_string_key: On 2016/02/18 02:22:32, raymes wrote: > Perhaps ...
4 years, 9 months ago (2016-02-29 07:45:03 UTC) #9
lshang
Hi Raymes, I made some changes according to your comments. I also removed gn/gyp changes ...
4 years, 9 months ago (2016-02-29 07:47:08 UTC) #10
raymes
lgtm
4 years, 9 months ago (2016-03-01 02:49:35 UTC) #11
raymes
https://codereview.chromium.org/1664113002/diff/260001/build/android/gyp/java_cpp_string_tests.py File build/android/gyp/java_cpp_string_tests.py (right): https://codereview.chromium.org/1664113002/diff/260001/build/android/gyp/java_cpp_string_tests.py#newcode30 build/android/gyp/java_cpp_string_tests.py:30: entries=[('L1', 'hello'), ('L2', 'world')]) nit: indentation https://codereview.chromium.org/1664113002/diff/260001/build/android/gyp/java_cpp_string_tests.py#newcode51 build/android/gyp/java_cpp_string_tests.py:51: def ...
4 years, 9 months ago (2016-03-01 02:51:50 UTC) #12
lshang
agrieve@, PTAL thanks!:-) https://codereview.chromium.org/1664113002/diff/260001/build/android/gyp/java_cpp_string_tests.py File build/android/gyp/java_cpp_string_tests.py (right): https://codereview.chromium.org/1664113002/diff/260001/build/android/gyp/java_cpp_string_tests.py#newcode30 build/android/gyp/java_cpp_string_tests.py:30: entries=[('L1', 'hello'), ('L2', 'world')]) On 2016/03/01 ...
4 years, 9 months ago (2016-03-01 03:49:38 UTC) #14
agrieve
4 years, 9 months ago (2016-03-02 02:59:30 UTC) #15
lgtm

https://codereview.chromium.org/1664113002/diff/280001/build/android/gyp/java...
File build/android/gyp/java_cpp_string.py (right):

https://codereview.chromium.org/1664113002/diff/280001/build/android/gyp/java...
build/android/gyp/java_cpp_string.py:193: #for string_definition in
string_definitions:
nit: delete

Powered by Google App Engine
This is Rietveld 408576698