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

Unified Diff: chrome/browser/extensions/api/cast_channel/cast_message_util.cc

Issue 250713002: Reformats how auth message is converted to string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/cast_channel/cast_message_util.cc
diff --git a/chrome/browser/extensions/api/cast_channel/cast_message_util.cc b/chrome/browser/extensions/api/cast_channel/cast_message_util.cc
index 2c972bc8a7dfcfaf2b0d55ca2b33f41eedcce225..b614c633bba5e7d37d357869e3c24335349ac083 100644
--- a/chrome/browser/extensions/api/cast_channel/cast_message_util.cc
+++ b/chrome/browser/extensions/api/cast_channel/cast_message_util.cc
@@ -107,17 +107,18 @@ std::string CastMessageToString(const CastMessage& message_proto) {
std::string AuthMessageToString(const DeviceAuthMessage& message) {
std::string out("{");
if (message.has_challenge()) {
- out += "\n challenge = {},";
+ out += "challenge: {}, ";
}
if (message.has_response()) {
- out += "\n response = {";
- out += "\n signature = " + message.response().signature();
- out += "\n, certificate = " +
- message.response().client_auth_certificate();
- out += "\n }";
+ out += "response: {signature: (";
+ out += base::UintToString(message.response().signature().length());
+ out += " bytes), certificate: (";
+ out += base::UintToString(
+ message.response().client_auth_certificate().length());
+ out += " bytes)}";
}
if (message.has_error()) {
- out += "\n error = {";
+ out += ", error: {";
out += base::IntToString(message.error().error_type());
out += "}";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698