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

Unified Diff: ui/compositor/layer.cc

Issue 2467953003: LayerDebugInfo should not clobber trace output (Closed)
Patch Set: Created 4 years, 1 month 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 | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 97add3dae9a56166f57cee7f9791612d1cadd8df..6d1902a1e9505240f1c9bd469c7956b3cf2782c4 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -914,7 +914,9 @@ class LayerDebugInfo : public base::trace_event::ConvertableToTraceFormat {
void AppendAsTraceFormat(std::string* out) const override {
base::DictionaryValue dictionary;
dictionary.SetString("layer_name", name_);
- base::JSONWriter::Write(dictionary, out);
+ std::string tmp;
+ base::JSONWriter::Write(dictionary, &tmp);
+ out->append(tmp);
}
private:
« no previous file with comments | « no previous file | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698