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

Unified Diff: base/json/string_escape.cc

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/json/json_writer_unittest.cc ('k') | base/logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/string_escape.cc
diff --git a/base/json/string_escape.cc b/base/json/string_escape.cc
index a3b0735191ee0dfc1b40d61862f3015570855297..469f9f98c038e1ec027fcf23203289ea4c67af88 100644
--- a/base/json/string_escape.cc
+++ b/base/json/string_escape.cc
@@ -135,7 +135,7 @@ std::string EscapeBytesAsInvalidJSONString(const StringPiece& str,
dest.push_back('"');
for (StringPiece::const_iterator it = str.begin(); it != str.end(); ++it) {
- ToUnsigned<StringPiece::value_type>::Unsigned c = *it;
+ unsigned char c = *it;
if (EscapeSpecialCodePoint(c, &dest))
continue;
« no previous file with comments | « base/json/json_writer_unittest.cc ('k') | base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698