| Index: net/base/net_util.cc
|
| ===================================================================
|
| --- net/base/net_util.cc (revision 2506)
|
| +++ net/base/net_util.cc (working copy)
|
| @@ -237,7 +237,7 @@
|
| // UTF-16 assuming it's in the OS default encoding.
|
| if (!IsStringASCII(encoded_word)) {
|
| // Try falling back to the NativeMB encoding if the raw input is not UTF-8.
|
| - if (IsStringUTF8(encoded_word.c_str())) {
|
| + if (IsStringUTF8(encoded_word)) {
|
| *output = encoded_word;
|
| } else {
|
| *output = WideToUTF8(base::SysNativeMBToWide(encoded_word));
|
| @@ -328,7 +328,7 @@
|
| // support a rudimentary form of RFC 2231 with charset label, but
|
| // it'd gain us little in terms of compatibility.
|
| tmp = UnescapeURLComponent(encoded_word, UnescapeRule::SPACES);
|
| - if (IsStringUTF8(tmp.c_str())) {
|
| + if (IsStringUTF8(tmp)) {
|
| output->swap(tmp);
|
| return true;
|
| // We can try either the OS default charset or 'origin charset' here,
|
|
|