Fix memory leak and crash when parsing baked-in configs in domain reliability monitor.
Invalid baked-in configs would be leaked (in FromJSON) and then crash due to a null deref (in AddContext). This change also makes two minor improvements: - pass scoped_refptrs by const ref - use a StringPiece rather than a std::string when parsing bake-in configs BUG=460483 R=ttuttle@chromium.org Review URL: https://codereview.chromium.org/945923002 Cr-Commit-Position: refs/heads/master@{#317375}
Showing
Please register or sign in to comment