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

Issue 2774203002: Migrate about:flags messages to const char* (Closed)

Created:
3 years, 9 months ago by vabr (Chromium)
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, srahim+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate about:flags messages to const char* About:flags messages are currently non-translated resource strings. This brings some challenges, in particular, despite not being translated, these messages are copied in every language pack. There is no apparent reason to keep them as resources, and thus this CL changes them to normal const char* string literals. Some unused resource strings are also dropped. More details are in https://docs.google.com/document/d/1n71OibFcBTlOdQqlLWF_Ek2CPXIKzZB-4vWTE8cfq8w/edit# BUG=703134 Review-Url: https://codereview.chromium.org/2774203002 Cr-Commit-Position: refs/heads/master@{#460072} Committed: https://chromium.googlesource.com/chromium/src/+/0215a8ef53b8eb8faa446366db61113e6f5941a2

Patch Set 1 #

Patch Set 2 : Fix .grd #

Patch Set 3 : Add OWNERS=* for the new files #

Patch Set 4 : Make it compile #

Patch Set 5 : Clean up Chromeos resources and fix features unittest. #

Patch Set 6 : iOS #

Patch Set 7 : Fix Android compilation #

Patch Set 8 : Fix Android compilation #

Patch Set 9 : iOS OWNERS #

Total comments: 19

Patch Set 10 : Comments addressed #

Total comments: 2

Patch Set 11 : Add spaces #

Total comments: 3

Patch Set 12 : kBrowserTaskScheduler #

Patch Set 13 : fix iOS compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7320 lines, -3953 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +0 lines, -149 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 21 chunks +68 lines, -2753 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/OWNERS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +1058 lines, -977 lines 0 comments Download
A chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 7 8 9 1 chunk +3156 lines, -0 lines 0 comments Download
A chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2916 lines, -0 lines 0 comments Download
M components/flags_ui/feature_entry.h View 3 chunks +12 lines, -6 lines 0 comments Download
M components/flags_ui/feature_entry.cc View 2 chunks +17 lines, -13 lines 0 comments Download
M components/flags_ui/flags_state.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M components/flags_ui/flags_state_unittest.cc View 1 2 3 4 2 chunks +15 lines, -17 lines 0 comments Download
M components/flags_ui_strings.grdp View 1 chunk +0 lines, -12 lines 0 comments Download
M ios/chrome/app/strings/ios_strings.grd View 1 2 3 4 5 1 chunk +0 lines, -18 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/about_flags.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -6 lines 0 comments Download
A ios/chrome/browser/ios_chrome_flag_descriptions.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +31 lines, -0 lines 0 comments Download
A ios/chrome/browser/ios_chrome_flag_descriptions.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (40 generated)
vabr (Chromium)
Hi all, Please review as follows: asvitkine@: components/flags_ui/* agrieve@: chrome/browser/about_flags.cc, chrome/browser/BUILD.gn, chrome/app sdefresne@: ios/* and ...
3 years, 9 months ago (2017-03-26 13:27:45 UTC) #20
jochen (gone - plz use gerrit)
lgtm
3 years, 9 months ago (2017-03-27 12:38:52 UTC) #25
agrieve
lgtm https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn#newcode410 chrome/browser/BUILD.gn:410: "flags_descriptions.h", Super nit: "flag_descriptions.*" would sound better. https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/flags_descriptions.cc ...
3 years, 9 months ago (2017-03-27 15:43:24 UTC) #26
Alexei Svitkine (slow)
https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn#newcode410 chrome/browser/BUILD.gn:410: "flags_descriptions.h", On 2017/03/27 15:43:24, agrieve wrote: > Super nit: ...
3 years, 9 months ago (2017-03-27 16:37:29 UTC) #27
vabr (Chromium)
https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn#newcode410 chrome/browser/BUILD.gn:410: "flags_descriptions.h", On 2017/03/27 16:37:28, Alexei Svitkine (slow) wrote: > ...
3 years, 9 months ago (2017-03-27 16:48:26 UTC) #28
Alexei Svitkine (slow)
https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2774203002/diff/160001/chrome/browser/BUILD.gn#newcode410 chrome/browser/BUILD.gn:410: "flags_descriptions.h", On 2017/03/27 16:48:25, vabr (Chromium) wrote: > On ...
3 years, 9 months ago (2017-03-27 16:55:39 UTC) #29
vabr (Chromium)
Thanks everybody for the review so far! Alexei and agrieve@, please have a look at ...
3 years, 9 months ago (2017-03-27 18:12:33 UTC) #32
agrieve
On 2017/03/27 18:12:33, vabr (Chromium) wrote: > Thanks everybody for the review so far! > ...
3 years, 9 months ago (2017-03-27 18:53:16 UTC) #33
Alexei Svitkine (slow)
lgtm once you address the important comment below https://codereview.chromium.org/2774203002/diff/180001/chrome/browser/flag_descriptions.cc File chrome/browser/flag_descriptions.cc (right): https://codereview.chromium.org/2774203002/diff/180001/chrome/browser/flag_descriptions.cc#newcode15 chrome/browser/flag_descriptions.cc:15: "If ...
3 years, 9 months ago (2017-03-27 18:56:50 UTC) #34
vabr (Chromium)
Thanks! Once sdefresne@ has a chance to review ios/* and components/flags_ui_strings.grdp and approves, I will ...
3 years, 9 months ago (2017-03-27 20:12:56 UTC) #39
sdefresne
components/flags_ui_strings.grdp & ios/* lgtm https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h File ios/chrome/browser/ios_chrome_flag_descriptions.h (right): https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h#newcode14 ios/chrome/browser/ios_chrome_flag_descriptions.h:14: // Name of about:flag option ...
3 years, 9 months ago (2017-03-28 09:42:28 UTC) #42
vabr (Chromium)
Thanks! Sending to CQ now. Cheers, Vaclav https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h File ios/chrome/browser/ios_chrome_flag_descriptions.h (right): https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h#newcode14 ios/chrome/browser/ios_chrome_flag_descriptions.h:14: // Name ...
3 years, 9 months ago (2017-03-28 10:10:31 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774203002/220001
3 years, 9 months ago (2017-03-28 10:10:51 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/392856)
3 years, 9 months ago (2017-03-28 10:12:49 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774203002/220001
3 years, 9 months ago (2017-03-28 10:14:29 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/64006)
3 years, 9 months ago (2017-03-28 10:19:39 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774203002/240001
3 years, 9 months ago (2017-03-28 10:26:58 UTC) #55
sdefresne
lgtm https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h File ios/chrome/browser/ios_chrome_flag_descriptions.h (right): https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h#newcode14 ios/chrome/browser/ios_chrome_flag_descriptions.h:14: // Name of about:flag option to control redirection ...
3 years, 9 months ago (2017-03-28 11:46:25 UTC) #56
vabr (Chromium)
On 2017/03/28 11:46:25, sdefresne wrote: > lgtm > > https://codereview.chromium.org/2774203002/diff/200001/ios/chrome/browser/ios_chrome_flag_descriptions.h > File ios/chrome/browser/ios_chrome_flag_descriptions.h (right): > ...
3 years, 9 months ago (2017-03-28 11:50:07 UTC) #57
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 12:48:31 UTC) #60
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/0215a8ef53b8eb8faa446366db61...

Powered by Google App Engine
This is Rietveld 408576698