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

Issue 3057027: Convert wstring/wchar_t* in chrome/renderer to std::string/char* or string16. (Closed)

Created:
10 years, 4 months ago by viettrungluu
Modified:
9 years, 6 months ago
Reviewers:
brettw, Nico, Evan Martin
CC:
chromium-reviews, Erik does not do reviews, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Convert wstring/wchar_t* in chrome/renderer to std::string/char* or string16. These were (mostly) made possible by the change in DictionaryValue's keys to std::string. BUG=23581 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54483

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix 2 #

Patch Set 4 : utf8 -> utf16 for things coming from resources #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -58 lines) Patch
M chrome/renderer/blocked_plugin.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_api_json_validity_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/localized_error.cc View 1 2 3 6 chunks +49 lines, -52 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
viettrungluu
Or maybe I should send this to foo_; he seems qualified.
10 years, 4 months ago (2010-07-31 19:43:43 UTC) #1
Evan Martin
I wonder if the API shouldn't just be "SetString()" rather than with UTF16 in there ...
10 years, 4 months ago (2010-07-31 23:16:01 UTC) #2
viettrungluu
On 2010/07/31 23:16:01, Evan Martin wrote: > I wonder if the API shouldn't just be ...
10 years, 4 months ago (2010-07-31 23:18:54 UTC) #3
brettw
On Sat, Jul 31, 2010 at 4:16 PM, <evan@chromium.org> wrote: > I wonder if the ...
10 years, 4 months ago (2010-07-31 23:38:00 UTC) #4
viettrungluu
On 2010/07/31 23:38:00, brettw wrote: > On Sat, Jul 31, 2010 at 4:16 PM, <mailto:evan@chromium.org> ...
10 years, 4 months ago (2010-07-31 23:48:07 UTC) #5
brettw
10 years, 4 months ago (2010-07-31 23:52:46 UTC) #6
On Sat, Jul 31, 2010 at 4:48 PM,  <viettrungluu@chromium.org> wrote:
> On 2010/07/31 23:38:00, brettw wrote:
>>
>> On Sat, Jul 31, 2010 at 4:16 PM,  <mailto:evan@chromium.org> wrote:
>> > I wonder if the API shouldn't just be "SetString()" rather than with
>> > UTF16
>> > in
>> > there -- it's obvious from the type that it's a string16.
>
>> I do think it should be SetString. I think the only reason we ended up
>> with "UTF16" in various places was to differentiate it from the old
>> wide code.
>
> Okay, I'll change that. I guess the same applies to the other "UTF16"
> methods in
> values.h (e.g., CreateStringValueFromUTF16, GetAsUTF16, etc.)?

Yes, generally these should be "String". If we need to support UTF-8
and UTF-16 generally we use "String" and "String16" to tell them apart
(in code I consider to be good examples of this).

Brett

Powered by Google App Engine
This is Rietveld 408576698