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

Issue 316013: Loading local resources uses improved fallback algorithm.... (Closed)

Created:
11 years, 2 months ago by Nebojša Ćirić
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, ben+cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., mad-corp
Visibility:
Public.

Description

Loading local resources uses improved fallback algorithm. Before: _locales/current_locale/rel_path, then extension root/rel_path Now: _locales/{current_locale, parents}/rel_path, then extension root/rel_path This change syncs local resource loading with catalog loading algo. BUG=12131 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29815

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -46 lines) Patch
M chrome/browser/extensions/extension_l10n_util.h View 1 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_l10n_util.cc View 1 2 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_l10n_util_unittest.cc View 1 2 chunks +27 lines, -11 lines 0 comments Download
M chrome/common/extensions/extension_resource.cc View 1 1 chunk +14 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension_resource_unittest.cc View 2 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Nebojša Ćirić
Adding mad@google.com just in case (I don't think there are any new dependencies in the ...
11 years, 2 months ago (2009-10-22 18:34:10 UTC) #1
Aaron Boodman
lgtm http://codereview.chromium.org/316013/diff/1/3 File chrome/browser/extensions/extension_l10n_util.cc (right): http://codereview.chromium.org/316013/diff/1/3#newcode186 Line 186: void GetL10nRelativePath(const FilePath& relative_resource_path, This function now ...
11 years, 2 months ago (2009-10-22 18:51:37 UTC) #2
Nebojša Ćirić
11 years, 2 months ago (2009-10-22 20:04:51 UTC) #3
Added DCHECK just in case. All done, submitting.

On 2009/10/22 18:51:37, Aaron Boodman wrote:
> lgtm
> 
> http://codereview.chromium.org/316013/diff/1/3
> File chrome/browser/extensions/extension_l10n_util.cc (right):
> 
> http://codereview.chromium.org/316013/diff/1/3#newcode186
> Line 186: void GetL10nRelativePath(const FilePath& relative_resource_path,
> This function now returns a list, not a single item. Its name should change to
> indicate this.
> 
> http://codereview.chromium.org/316013/diff/1/3#newcode188
> Line 188: if (!l10n_paths)
> Why would a caller ever pass NULL? Should this be a DCHECK?

Powered by Google App Engine
This is Rietveld 408576698