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

Issue 322523002: Adding OverrideStringResource API to ResourceBundle. (Closed)

Created:
6 years, 6 months ago by jwd
Modified:
6 years, 5 months ago
Reviewers:
tony, grt (UTC plus 2)
CC:
chromium-reviews, asvitkine_google
Visibility:
Public.

Description

Adding OverrideStringResource API to ResourceBundle. This is to facilitate overriding UI strings from the variations service. BUG=370033 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282758

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 6

Patch Set 3 : addressing grt's nits #

Patch Set 4 : Threading and reset #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -2 lines) Patch
M ui/base/resource/resource_bundle.h View 1 2 3 4 chunks +14 lines, -0 lines 2 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 1 2 3 2 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jwd
6 years, 6 months ago (2014-06-06 15:41:31 UTC) #1
grt (UTC plus 2)
https://codereview.chromium.org/322523002/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/322523002/diff/1/ui/base/resource/resource_bundle.cc#newcode447 ui/base/resource/resource_bundle.cc:447: if (overridden_strings_.find(message_id) != overridden_strings_.end()) avoid doing two O(logN) scans ...
6 years, 6 months ago (2014-06-09 16:54:44 UTC) #2
jwd
https://codereview.chromium.org/322523002/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/322523002/diff/1/ui/base/resource/resource_bundle.cc#newcode447 ui/base/resource/resource_bundle.cc:447: if (overridden_strings_.find(message_id) != overridden_strings_.end()) On 2014/06/09 16:54:44, grt wrote: ...
6 years, 6 months ago (2014-06-10 20:59:25 UTC) #3
grt (UTC plus 2)
lgtm with nits. https://codereview.chromium.org/322523002/diff/20001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/322523002/diff/20001/ui/base/resource/resource_bundle.cc#newcode315 ui/base/resource/resource_bundle.cc:315: int message_id, const base::string16& overridding_string) { ...
6 years, 6 months ago (2014-06-11 01:51:18 UTC) #4
jwd
Added a reset of the overrides when the locale is changed. https://codereview.chromium.org/322523002/diff/20001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): ...
6 years, 5 months ago (2014-07-03 17:41:31 UTC) #5
jwd
PTAL
6 years, 5 months ago (2014-07-03 18:37:28 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/322523002/diff/60001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/322523002/diff/60001/ui/base/resource/resource_bundle.h#newcode255 ui/base/resource/resource_bundle.h:255: void OverrideLocaleStringResource(int message_id, how will this be used so ...
6 years, 5 months ago (2014-07-03 19:00:35 UTC) #7
jwd
+tony for owners review. https://codereview.chromium.org/322523002/diff/60001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/322523002/diff/60001/ui/base/resource/resource_bundle.h#newcode255 ui/base/resource/resource_bundle.h:255: void OverrideLocaleStringResource(int message_id, On 2014/07/03 ...
6 years, 5 months ago (2014-07-11 19:23:28 UTC) #8
tony
Seems reasonable to me. LGTM
6 years, 5 months ago (2014-07-11 19:44:09 UTC) #9
jwd
The CQ bit was checked by jwd@chromium.org
6 years, 5 months ago (2014-07-11 19:48:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwd@chromium.org/322523002/60001
6 years, 5 months ago (2014-07-11 19:50:28 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-12 00:47:35 UTC) #12
Message was sent while issue was closed.
Change committed as 282758

Powered by Google App Engine
This is Rietveld 408576698