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

Unified Diff: content/renderer/manifest/manifest_parser.cc

Issue 555493007: Fix ASAN breakage with ManifestParserTest.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: content/renderer/manifest/manifest_parser.cc
diff --git a/content/renderer/manifest/manifest_parser.cc b/content/renderer/manifest/manifest_parser.cc
index 163d3432cfa698c30e994a2a9057418563e42ce3..3e08f8c55f995181d8467dd7cf241feb9357d4b5 100644
--- a/content/renderer/manifest/manifest_parser.cc
+++ b/content/renderer/manifest/manifest_parser.cc
@@ -54,7 +54,7 @@ base::NullableString16 ParseShortName(
namespace content {
Manifest ManifestParser::Parse(const base::StringPiece& json) {
- base::Value* value = base::JSONReader::Read(json);
+ scoped_ptr<base::Value> value(base::JSONReader::Read(json));
if (!value) {
// TODO(mlamouri): get the JSON parsing error and report it to the developer
// console.
« 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