Index: chrome/test/chromedriver/chrome/heap_snapshot_taker.cc |
diff --git a/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc b/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc |
index 51c1247b781bffb938f1250b071337abeaa9cb8e..996d78d09508973cac8d92202428f733ba58fc07 100644 |
--- a/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc |
+++ b/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc |
@@ -25,18 +25,20 @@ Status HeapSnapshotTaker::TakeSnapshot(scoped_ptr<base::Value>* snapshot) { |
Status status3(kOk); |
if (status1.IsOk() && status2.IsOk()) { |
scoped_ptr<base::Value> value(base::JSONReader::Read(snapshot_)); |
- if (!value) |
+ if (!value) { |
status3 = Status(kUnknownError, "heap snapshot not in JSON format"); |
- else |
+ } else { |
*snapshot = value.Pass(); |
+ } |
} |
snapshot_.clear(); |
- if (status1.IsError()) |
+ if (status1.IsError()) { |
return status1; |
- else if (status2.IsError()) |
+ } else if (status2.IsError()) { |
return status2; |
- else |
+ } else { |
return status3; |
+ } |
} |
Status HeapSnapshotTaker::TakeSnapshotInternal() { |