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

Issue 834183005: Move two locale functions from rtl.h into l10n_util.h (Closed)

Created:
5 years, 11 months ago by tfarina
Modified:
5 years, 11 months ago
Reviewers:
tony, sky
CC:
chromium-reviews, tfarina, lcwu+watch_chromium.org, erikwright+watch_chromium.org, jshin+watch_chromium.org, gunsch+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move two locale functions from rtl.h into l10n_util.h It seems to be a more logical place to look at for those functions. Also because nothing in base/ calls those functions it seems more suitable to put it in ui/base/l10n where it is actually called and where we already have a version GetCanonicalLocale() function that takes a std::string. This is a redo of https://codereview.chromium.org/269943004/. BUG=None TEST=base_unittests, ui_base_unittests R=sky@chromium.org,tony@chromium.org

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -55 lines) Patch
M base/i18n/rtl.h View 1 chunk +0 lines, -8 lines 2 comments Download
M base/i18n/rtl.cc View 2 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/bidi_checker_web_ui_test.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M ui/base/l10n/l10n_util.h View 1 chunk +7 lines, -2 lines 0 comments Download
M ui/base/l10n/l10n_util.cc View 4 chunks +37 lines, -3 lines 0 comments Download
M ui/base/l10n/l10n_util_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tfarina
PTAL!
5 years, 11 months ago (2015-01-12 21:38:31 UTC) #1
sky
https://codereview.chromium.org/834183005/diff/1/base/i18n/rtl.h File base/i18n/rtl.h (left): https://codereview.chromium.org/834183005/diff/1/base/i18n/rtl.h#oldcode40 base/i18n/rtl.h:40: BASE_I18N_EXPORT std::string GetConfiguredLocale(); Local is not ui related. I ...
5 years, 11 months ago (2015-01-13 00:08:54 UTC) #2
tfarina
https://codereview.chromium.org/834183005/diff/1/base/i18n/rtl.h File base/i18n/rtl.h (left): https://codereview.chromium.org/834183005/diff/1/base/i18n/rtl.h#oldcode40 base/i18n/rtl.h:40: BASE_I18N_EXPORT std::string GetConfiguredLocale(); On 2015/01/13 00:08:54, sky wrote: > ...
5 years, 11 months ago (2015-01-13 00:37:15 UTC) #3
sky
Like I said, the system locale is *not* UI related anymore than say the path ...
5 years, 11 months ago (2015-01-13 01:05:36 UTC) #4
tfarina
On Mon, Jan 12, 2015 at 11:05 PM, Scott Violet <sky@chromium.org> wrote: > Like I ...
5 years, 11 months ago (2015-01-13 01:12:47 UTC) #5
sky
Yes. On Mon, Jan 12, 2015 at 5:12 PM, Thiago Farina <tfarina@chromium.org> wrote: > > ...
5 years, 11 months ago (2015-01-13 18:20:30 UTC) #6
tfarina
5 years, 11 months ago (2015-01-14 13:25:12 UTC) #7
OK. Closing this in favor of https://codereview.chromium.org/846373002.

Powered by Google App Engine
This is Rietveld 408576698