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

Issue 8890086: Issue 71980: Extensions code should use UTF-16 for user-visible Unicode strings (Closed)

Created:
9 years ago by Devlin Cronin
Modified:
9 years ago
Reviewers:
clintstaley, Aaron Boodman, M-A Ruel, Matt Tytel, clintstaley
CC:
chromium-reviews
Visibility:
Public.

Description

Updating extensions code to use UTF16 Changes std::string error to string16 in various locations of the Extensions file, spanning up the tree from ExtensionErrorReporter and Extension::InitFromValue, with conversion to string16 beginning at extension_l10n_util::LocalizeExtension and Extension::Create. Later patches can continue/expand the conversion. BUG=71980 TEST=Run existing unit tests and browser tests, which have been adjusted for string16s. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114917

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -357 lines) Patch
M AUTHORS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/convert_user_script.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/convert_user_script.cc View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/extensions/convert_user_script_unittest.cc View 1 2 3 4 7 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 17 chunks +26 lines, -24 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_error_reporter.h View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_error_reporter.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 7 chunks +24 lines, -19 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 2 3 4 34 chunks +44 lines, -40 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 6 chunks +14 lines, -14 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 123 chunks +193 lines, -175 lines 0 comments Download
M chrome/common/extensions/extension_error_utils.h View 1 2 3 4 1 chunk +20 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_error_utils.cc View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unpacker.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_unpacker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_unpacker_unittest.cc View 1 2 3 4 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/common/extensions/manifest.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/manifest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 2 3 4 6 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
clintstaley
Thanks for doing this, Devlin. And I like your plan of cutting it off at ...
9 years ago (2011-12-14 23:44:40 UTC) #1
Aaron Boodman
http://codereview.chromium.org/8890086/diff/28/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/8890086/diff/28/chrome/common/extensions/extension.cc#newcode230 chrome/common/extensions/extension.cc:230: std::string* std_error) { utf8_error would be a better name. ...
9 years ago (2011-12-15 02:25:36 UTC) #2
Devlin Cronin
Thank you for the comments. All suggested changes should be implemented in the latest upload. ...
9 years ago (2011-12-15 19:36:11 UTC) #3
Aaron Boodman
LGTM Are you provisional commiters? If not I will get you nominated as that will ...
9 years ago (2011-12-15 20:25:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/RDevlin.Cronin@gmail.com/8890086/16003
9 years ago (2011-12-15 23:52:04 UTC) #5
commit-bot: I haz the power
Presubmit check for 8890086-16003 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-15 23:52:29 UTC) #6
Aaron Boodman
I'm going to try and let commit queue land (an automated system) land this now. ...
9 years ago (2011-12-15 23:52:58 UTC) #7
M-A Ruel
On 2011/12/15 23:52:58, Aaron Boodman wrote: > I'm going to try and let commit queue ...
9 years ago (2011-12-15 23:53:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/RDevlin.Cronin@gmail.com/8890086/16003
9 years ago (2011-12-15 23:57:15 UTC) #9
Aaron Boodman
On 2011/12/15 23:53:52, Marc-Antoine Ruel wrote: > On 2011/12/15 23:52:58, Aaron Boodman wrote: > > ...
9 years ago (2011-12-16 00:01:04 UTC) #10
Aaron Boodman
Hi Devlin, The patch has a few problems. You can see the results from all ...
9 years ago (2011-12-16 01:46:58 UTC) #11
M-A Ruel
FTR, just make sure to add yourself in the AUTHORS file, as described in https://sites.google.com/a/chromium.org/dev/developers/contributing-code#TOC-Get-your-code-ready ...
9 years ago (2011-12-16 16:06:37 UTC) #12
Devlin Cronin
The latest patch should compile on Clang, and passes the pertinent unit and browser tests ...
9 years ago (2011-12-17 01:29:01 UTC) #13
clintstaley_gmail.com
Did you post any notes on the clang process? If we each are to do ...
9 years ago (2011-12-17 01:40:52 UTC) #14
Aaron Boodman
(note to self: sent to try-bots: 8890086#891da6)
9 years ago (2011-12-17 07:16:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/RDevlin.Cronin@gmail.com/8890086/32008
9 years ago (2011-12-17 08:23:41 UTC) #16
commit-bot: I haz the power
Change committed as 114917
9 years ago (2011-12-17 09:33:52 UTC) #17
Aaron Boodman
9 years ago (2011-12-17 16:55:45 UTC) #18
On Sat, Dec 17, 2011 at 1:33 AM,  <commit-bot@chromium.org> wrote:
> Change committed as 114917

Congrats!

- a

Powered by Google App Engine
This is Rietveld 408576698