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

Issue 1585013: Localize CSS files in content scripts (but don't localize JS files).... (Closed)

Created:
10 years, 8 months ago by Nebojša Ćirić
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, Erik does not do reviews, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Localize CSS files in content scripts (but don't localize JS files). Add UserScriptSlave unittest. BUG=39899 TEST=List css file in content_scripts section of the manifest. Refer to an image using url(chrome-extension://__MSG_@@extension_id_/image.png); within that css. @@extension_id message should be replaced with actual id of the extension. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43684

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -25 lines) Patch
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/user_script.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/mock_render_thread.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/user_script_slave.h View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/renderer/user_script_slave.cc View 1 2 3 4 chunks +57 lines, -17 lines 0 comments Download
A chrome/renderer/user_script_slave_unittest.cc View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nebojša Ćirić
This CL is fixing my oversight with content scripts and i18n (I didn't notice they ...
10 years, 8 months ago (2010-04-02 23:44:45 UTC) #1
Matt Perry
LGTM with a couple small comments. I'm not familiar with the i18n stuff, but here's ...
10 years, 8 months ago (2010-04-05 19:13:07 UTC) #2
Nebojša Ćirić
We don't replace __MSG_name__ placeholders in JS scripts since developers can use chrome.i18n.getMessage instead (and ...
10 years, 8 months ago (2010-04-05 22:11:52 UTC) #3
Matt Perry
LGTM http://codereview.chromium.org/1585013/diff/11002/40006 File chrome/renderer/user_script_slave.cc (right): http://codereview.chromium.org/1585013/diff/11002/40006#newcode108 chrome/renderer/user_script_slave.cc:108: std::string error; nit: can move this inside the ...
10 years, 8 months ago (2010-04-05 22:45:37 UTC) #4
rafaelw
sorry for being late to this review. i see that you already committed it. i'd ...
10 years, 8 months ago (2010-04-06 23:20:34 UTC) #5
Nebojša Ćirić
Sorry for committing it - it had to go in this week before beta cut ...
10 years, 8 months ago (2010-04-07 00:04:06 UTC) #6
Matt Perry
On 2010/04/07 00:04:06, Nebojša Ćirić wrote: > > 2. I did this with assumption that ...
10 years, 8 months ago (2010-04-07 00:11:06 UTC) #7
rafaelw1
I'm less worried about actually performance impact and more about code complexity. Both in terms ...
10 years, 8 months ago (2010-04-07 00:12:51 UTC) #8
Nebojša Ćirić
Ok, I'll revert then. :( On 2010/04/07 00:11:06, Matt Perry wrote: > On 2010/04/07 00:04:06, ...
10 years, 8 months ago (2010-04-07 00:13:01 UTC) #9
Aaron Boodman
I thought the plan of record was to do localization at unpack time and to ...
10 years, 8 months ago (2010-04-07 00:13:32 UTC) #10
Nebojša Ćirić
10 years, 8 months ago (2010-04-07 00:21:52 UTC) #11
I think we said that couldn't be done because of the unpacked extensions (not
installed). Where would we save originals?

On 2010/04/07 00:13:32, Aaron Boodman wrote:
> I thought the plan of record was to do localization at unpack time and to save
> the localized versions.

Powered by Google App Engine
This is Rietveld 408576698