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

Issue 239543005: Introduce extensions_strings.grd (Closed)

Created:
6 years, 8 months ago by James Cook
Modified:
6 years, 8 months ago
Reviewers:
tfarina, Yoyo Zhou, tony
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Introduce extensions_strings.grd Extract extensions-module strings into their own .grd and .gyp file. Follows the conventions of components_strings.gyp and ui_strings.gyp. Starts by moving sockets API strings, more will follow. BUG=335157 TEST=compiles, unit_tests *Extension* TBR=mmoss@chromium.org for chrome/tools/build/repack_locales.py TBR=thomasvl@chromium.org for chrome/tools/check_grd_for_unused_strings.py Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264430

Patch Set 1 #

Total comments: 8

Patch Set 2 : hard dependency #

Total comments: 4

Patch Set 3 : rebase (strings) #

Patch Set 4 : comments (strings) #

Total comments: 2

Patch Set 5 : more strings, reduce DEPS, remove chrome_strings dependency #

Patch Set 6 : move localized strings #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2044 lines, -172 lines) Patch
M chrome/app/generated_resources.grd View 8 chunks +0 lines, -139 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_resources.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/i18n/default_locale_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/tools/build/repack_locales.py View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/tools/check_grd_for_unused_strings.py View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/DEPS View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/admin_policy.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/sockets/sockets_manifest_permission.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/extension.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/common/file_util.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/file_util_unittest.cc View 1 chunk +1 line, -1 line 1 comment Download
M extensions/common/manifest_handlers/background_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/manifest_handlers/icons_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/media_galleries_permission.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/permission_message_util.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/settings_override_permission.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/socket_permission.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/usb_device_permission.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 chunks +9 lines, -9 lines 0 comments Download
A extensions/extensions_strings.grd View 1 2 3 4 1 chunk +332 lines, -0 lines 0 comments Download
A + extensions/extensions_strings.gyp View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
A extensions/strings/extensions_strings_am.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ar.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_bg.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_bn.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ca.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_cs.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_da.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_de.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_el.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_en-GB.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_es.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_es-419.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_et.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_fa.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_fi.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_fil.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_fr.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_gu.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_hi.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_hr.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_hu.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_id.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_it.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_iw.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ja.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_kn.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ko.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_lt.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_lv.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ml.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_mr.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ms.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_nl.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_no.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_pl.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_pt-BR.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_pt-PT.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ro.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ru.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_sk.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_sl.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_sr.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_sv.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_sw.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_ta.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_te.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_th.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_tr.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_uk.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_vi.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_zh-CN.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/strings/extensions_strings_zh-TW.xtb View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
James Cook
tfarina, PTAL, especially at how I set up the gyp and grd files. It looks ...
6 years, 8 months ago (2014-04-15 23:46:39 UTC) #1
James Cook
+derat just as FYI
6 years, 8 months ago (2014-04-15 23:49:38 UTC) #2
Yoyo Zhou
LGTM as a first pass https://codereview.chromium.org/239543005/diff/1/extensions/extensions_strings.gyp File extensions/extensions_strings.gyp (right): https://codereview.chromium.org/239543005/diff/1/extensions/extensions_strings.gyp#newcode24 extensions/extensions_strings.gyp:24: }, Shouldn't this be ...
6 years, 8 months ago (2014-04-16 00:07:02 UTC) #3
tfarina
James, I'm adding Tony to answer your question below. Also I'm trying to use the ...
6 years, 8 months ago (2014-04-16 02:30:56 UTC) #4
Daniel Erat
By "use the term 'messages' rather than 'strings'", are you referring to filenames? I thought ...
6 years, 8 months ago (2014-04-16 02:36:47 UTC) #5
tfarina
Daniel, yes -> extensions_strings.grd -> extensions_messages.grd May be you have a point though. Haven't thought ...
6 years, 8 months ago (2014-04-16 02:43:30 UTC) #6
Daniel Erat
On 2014/04/16 02:43:30, tfarina wrote: > Daniel, yes -> extensions_strings.grd -> extensions_messages.grd > > May ...
6 years, 8 months ago (2014-04-16 02:46:03 UTC) #7
James Cook
On 2014/04/16 02:46:03, Daniel Erat wrote: > On 2014/04/16 02:43:30, tfarina wrote: > > Daniel, ...
6 years, 8 months ago (2014-04-16 15:36:55 UTC) #8
tfarina
OK. I'm fine following existing scheme.
6 years, 8 months ago (2014-04-16 16:04:14 UTC) #9
tfarina
https://codereview.chromium.org/239543005/diff/20001/extensions/extensions_strings.gyp File extensions/extensions_strings.gyp (right): https://codereview.chromium.org/239543005/diff/20001/extensions/extensions_strings.gyp#newcode22 extensions/extensions_strings.gyp:22: '<(SHARED_INTERMEDIATE_DIR)/extensions_strings', did you deliberated choose not to use the ...
6 years, 8 months ago (2014-04-16 16:08:11 UTC) #10
James Cook
https://codereview.chromium.org/239543005/diff/1/extensions/extensions_strings.gyp File extensions/extensions_strings.gyp (right): https://codereview.chromium.org/239543005/diff/1/extensions/extensions_strings.gyp#newcode24 extensions/extensions_strings.gyp:24: }, On 2014/04/16 00:07:03, Yoyo Zhou wrote: > Shouldn't ...
6 years, 8 months ago (2014-04-16 16:22:34 UTC) #11
tfarina
Did everything run fine? Aren't we missing any extra setup with ResourceBundle? Please, also run ...
6 years, 8 months ago (2014-04-16 18:09:07 UTC) #12
tony
Stub XTB files are fine. The translations will be broken on trunk, but before the ...
6 years, 8 months ago (2014-04-16 18:38:11 UTC) #13
James Cook
yoz, could you take another quick look? I moved all the IDS strings referenced in ...
6 years, 8 months ago (2014-04-16 21:08:35 UTC) #14
Yoyo Zhou
still LGTM
6 years, 8 months ago (2014-04-16 21:55:53 UTC) #15
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 8 months ago (2014-04-17 02:54:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/239543005/110001
6 years, 8 months ago (2014-04-17 02:55:40 UTC) #17
commit-bot: I haz the power
Change committed as 264430
6 years, 8 months ago (2014-04-17 05:22:01 UTC) #18
tfarina
Idea for a follow up CL. https://codereview.chromium.org/239543005/diff/110001/extensions/common/file_util_unittest.cc File extensions/common/file_util_unittest.cc (right): https://codereview.chromium.org/239543005/diff/110001/extensions/common/file_util_unittest.cc#newcode14 extensions/common/file_util_unittest.cc:14: #include "chrome/common/chrome_paths.h" We ...
6 years, 8 months ago (2014-04-17 16:12:22 UTC) #19
James Cook
6 years, 8 months ago (2014-04-17 17:31:13 UTC) #20
Message was sent while issue was closed.
On 2014/04/17 16:12:22, tfarina wrote:
> Idea for a follow up CL.
> 
>
https://codereview.chromium.org/239543005/diff/110001/extensions/common/file_...
> File extensions/common/file_util_unittest.cc (right):
> 
>
https://codereview.chromium.org/239543005/diff/110001/extensions/common/file_...
> extensions/common/file_util_unittest.cc:14: #include
> "chrome/common/chrome_paths.h"
> We should remove this. We are using it for chrome::DIR_TEST_DATA. I think we
> need to create a extensions_paths.*:RegisterPathProvider and
> extensions/test/data directory to fix this.

That seems OK but keep in mind that Chrome unit_tests and extensions_unittests
share a lot of the same data files. Moving one piece of test data to
//extensions/test/data will involve updating tests that stay in chrome.

Powered by Google App Engine
This is Rietveld 408576698