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

Unified Diff: base/json/json_writer.cc

Issue 7038028: Initial support for cloudprint in print preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad merge Created 9 years, 7 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 | « no previous file | chrome/browser/about_flags.cc » ('j') | chrome/browser/about_flags.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_writer.cc
diff --git a/base/json/json_writer.cc b/base/json/json_writer.cc
index 65317724dba7102670cb3f75a72bc0bea982578a..193142c45436ef740df1bf89df5eecea76fa18ec 100644
--- a/base/json/json_writer.cc
+++ b/base/json/json_writer.cc
@@ -114,6 +114,14 @@ void JSONWriter::BuildJSONString(const Value* const node,
break;
}
+ case Value::TYPE_BINARY:
Scott Byer 2011/05/24 23:40:32 If StringValue works with the constructed form str
+ {
+ const BinaryValue* data = static_cast<const BinaryValue*>(node);
+ std::string value(data->GetBuffer(), data->GetSize());
+ JsonDoubleQuote(value, true, json_string_);
+ break;
+ }
+
case Value::TYPE_LIST:
{
json_string_->append("[");
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | chrome/browser/about_flags.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698