Bug 1318004 - Replace string literals containing escaped characters with raw string literals. r=Ehsan
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 16 Nov 2016 17:07:03 +0100
changeset 324067 f59ea728b7582b566cd7f772e9780bba10cdc08b
parent 324066 d430f267791ea1ca694ab1da5a6669e62dad406f
child 324068 bbb2524a8b4fbf78b985681e5d9cf47a6cf9133a
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersEhsan
bugs1318004
milestone53.0a1
Bug 1318004 - Replace string literals containing escaped characters with raw string literals. r=Ehsan MozReview-Commit-ID: KOk13e23Py
toolkit/components/terminator/nsTerminator.cpp
--- a/toolkit/components/terminator/nsTerminator.cpp
+++ b/toolkit/components/terminator/nsTerminator.cpp
@@ -514,16 +514,20 @@ nsTerminator::UpdateTelemetry()
     }
     if (fields++ > 0) {
       telemetryData->Append(", ");
     }
     telemetryData->AppendLiteral("\"");
     telemetryData->Append(sShutdownSteps[i].mTopic);
     telemetryData->AppendLiteral("\": ");
     telemetryData->AppendInt(sShutdownSteps[i].mTicks);
+    telemetryData->AppendLiteral(R"(")");
+    telemetryData->Append(sShutdownStep.mTopic);
+    telemetryData->AppendLiteral(R"(": )");
+    telemetryData->AppendInt(sShutdownStep.mTicks);
   }
   telemetryData->AppendLiteral("}");
 
   if (fields == 0) {
     // Nothing to write
       return;
   }