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

Issue 2578003002: Move |GetCanonicalEncodingNameByAliasName| to base/i18n (Closed)

Created:
4 years ago by Jinsuk Kim
Modified:
3 years, 11 months ago
CC:
chromium-reviews, creis+watch_chromium.org, vmpstr+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, android-webview-reviews_chromium.org, jshin+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move |GetCanonicalEncodingNameByAliasName| to base/i18n This CL moves the encoding-related utility method to base/i18n where it belongs better and makes itself available directly to embedder/contents. It also helps the interface ContentBrowserClient do without the method of the same name, which makes it simpler. Committed: https://crrev.com/79df88ae0437499f21dd82976ca24a0c6f2d11c7 Cr-Commit-Position: refs/heads/master@{#441326}

Patch Set 1 #

Total comments: 8

Patch Set 2 : ucnv_getStandardName #

Total comments: 2

Patch Set 3 : return const char* #

Total comments: 4

Patch Set 4 : static/encoding_name #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -134 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M base/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A base/i18n/character_encoding.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A base/i18n/character_encoding.cc View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A base/i18n/character_encoding_unittest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/character_encoding.h View 1 chunk +0 lines, -14 lines 0 comments Download
D chrome/browser/character_encoding.cc View 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/character_encoding_unittest.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 4 chunks +3 lines, -8 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
Jinsuk Kim
..sort of motivated by the urge to remove TODO added in https://crrev.com/2254273003 as it's getting ...
4 years ago (2016-12-15 03:52:23 UTC) #2
Jinsuk Kim
4 years ago (2016-12-15 04:13:45 UTC) #4
jungshik at Google
See the comment below. https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc#newcode28 base/i18n/character_encoding.cc:28: for (size_t i = 0; ...
4 years ago (2016-12-15 18:35:01 UTC) #5
Jinsuk Kim
https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc#newcode28 base/i18n/character_encoding.cc:28: for (size_t i = 0; i < arraysize(kCanonicalEncodingNames); ++i) ...
4 years ago (2016-12-16 00:03:10 UTC) #6
jungshik at Google
On 2016/12/16 00:03:10, Jinsuk Kim wrote: > https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc > File base/i18n/character_encoding.cc (right): > > https://codereview.chromium.org/2578003002/diff/1/base/i18n/character_encoding.cc#newcode28 ...
4 years ago (2016-12-16 01:20:12 UTC) #7
Jinsuk Kim
dcheng@chromium.org: Please review changes in base/BUILD.gn nasko@chromium.org: Please review changes in content/. A public interface ...
4 years ago (2016-12-16 01:43:29 UTC) #9
Jinsuk Kim
michaelbai@chromium.org: Please review changes in android_webview/ sky@chromium.org: Please review changes in chrome/ I need your ...
4 years ago (2016-12-16 02:09:54 UTC) #11
sky
chrome LGTM
4 years ago (2016-12-16 17:04:47 UTC) #12
michaelbai
android_webview LGTM
4 years ago (2016-12-16 18:40:45 UTC) #13
dcheng
https://codereview.chromium.org/2578003002/diff/20001/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/20001/base/i18n/character_encoding.cc#newcode27 base/i18n/character_encoding.cc:27: std::string GetCanonicalEncodingNameByAliasName(const std::string& alias_name) { Can this return const ...
4 years ago (2016-12-20 19:26:12 UTC) #14
Jinsuk Kim
https://codereview.chromium.org/2578003002/diff/20001/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/20001/base/i18n/character_encoding.cc#newcode27 base/i18n/character_encoding.cc:27: std::string GetCanonicalEncodingNameByAliasName(const std::string& alias_name) { On 2016/12/20 19:26:12, dcheng ...
4 years ago (2016-12-20 23:11:54 UTC) #19
dcheng
https://codereview.chromium.org/2578003002/diff/40001/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/40001/base/i18n/character_encoding.cc#newcode30 base/i18n/character_encoding.cc:30: return alias_name.c_str(); return encoding_name; is safer (there's no guarantee ...
3 years, 11 months ago (2017-01-03 21:52:54 UTC) #20
Jinsuk Kim
https://codereview.chromium.org/2578003002/diff/40001/base/i18n/character_encoding.cc File base/i18n/character_encoding.cc (right): https://codereview.chromium.org/2578003002/diff/40001/base/i18n/character_encoding.cc#newcode30 base/i18n/character_encoding.cc:30: return alias_name.c_str(); On 2017/01/03 21:52:54, dcheng wrote: > return ...
3 years, 11 months ago (2017-01-03 23:42:30 UTC) #21
nasko
content/ LGTM
3 years, 11 months ago (2017-01-04 00:38:07 UTC) #22
dcheng
lgtm it feels a bit weird in //base, given that it's just two very specific ...
3 years, 11 months ago (2017-01-04 00:47:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2578003002/60001
3 years, 11 months ago (2017-01-04 02:30:07 UTC) #26
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_content_browser_client.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-04 03:44:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2578003002/80001
3 years, 11 months ago (2017-01-04 06:20:44 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-04 06:27:25 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 06:29:55 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/79df88ae0437499f21dd82976ca24a0c6f2d11c7
Cr-Commit-Position: refs/heads/master@{#441326}

Powered by Google App Engine
This is Rietveld 408576698