Index: chrome/browser/net/predictor_unittest.cc |
diff --git a/chrome/browser/net/predictor_unittest.cc b/chrome/browser/net/predictor_unittest.cc |
index 9b947c0b02e020f9eb980862a5513558d3b7e554..04690c7424e74122caac29dc6ba22cf2650b195f 100644 |
--- a/chrome/browser/net/predictor_unittest.cc |
+++ b/chrome/browser/net/predictor_unittest.cc |
@@ -106,6 +106,8 @@ static void AddToSerializedList(const GURL& motivation, |
// ...and make it part of the serialized referral_list. |
referral_list->Append(base::WrapUnique(motivation_list)); |
+ // |motivation_list| is invalidated at this point, so it needs to be reset. |
+ referral_list->GetList(referral_list->GetSize() - 1, &motivation_list); |
} |
base::ListValue* subresource_list(NULL); |