summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/safe_browsing/malware_details_unittest.cc9
-rw-r--r--tools/valgrind/memcheck/suppressions.txt6
2 files changed, 6 insertions, 9 deletions
diff --git a/chrome/browser/safe_browsing/malware_details_unittest.cc b/chrome/browser/safe_browsing/malware_details_unittest.cc
index 85b2d45..b6136c8 100644
--- a/chrome/browser/safe_browsing/malware_details_unittest.cc
+++ b/chrome/browser/safe_browsing/malware_details_unittest.cc
@@ -94,7 +94,8 @@ TEST_F(MalwareDetailsTest, MalwareSubResource) {
SafeBrowsingService::UnsafeResource resource;
InitResource(&resource, ResourceType::SUB_RESOURCE, GURL(kMalwareURL));
- MalwareDetails* report = new MalwareDetails(contents(), resource);
+ scoped_refptr<MalwareDetails> report = new MalwareDetails(
+ contents(), resource);
scoped_ptr<const std::string> serialized(report->GetSerializedReport());
safe_browsing::ClientMalwareReportRequest actual;
@@ -123,7 +124,8 @@ TEST_F(MalwareDetailsTest, MalwareSubResourceWithOriginalUrl) {
InitResource(&resource, ResourceType::SUB_RESOURCE, GURL(kMalwareURL));
resource.original_url = GURL(kOriginalLandingURL);
- MalwareDetails* report = new MalwareDetails(contents(), resource);
+ scoped_refptr<MalwareDetails> report = new MalwareDetails(
+ contents(), resource);
scoped_ptr<const std::string> serialized(report->GetSerializedReport());
safe_browsing::ClientMalwareReportRequest actual;
@@ -154,7 +156,8 @@ TEST_F(MalwareDetailsTest, NotPublicUrl) {
controller().LoadURL(GURL(kHttpsURL), GURL(), PageTransition::TYPED);
SafeBrowsingService::UnsafeResource resource;
InitResource(&resource, ResourceType::SUB_RESOURCE, GURL(kMalwareURL));
- MalwareDetails* report = new MalwareDetails(contents(), resource);
+ scoped_refptr<MalwareDetails> report = new MalwareDetails(
+ contents(), resource);
scoped_ptr<const std::string> serialized(report->GetSerializedReport());
safe_browsing::ClientMalwareReportRequest actual;
diff --git a/tools/valgrind/memcheck/suppressions.txt b/tools/valgrind/memcheck/suppressions.txt
index 8511de1..f111726 100644
--- a/tools/valgrind/memcheck/suppressions.txt
+++ b/tools/valgrind/memcheck/suppressions.txt
@@ -3460,9 +3460,3 @@
fun:_ZN7WebCore13RootInlineBox26alignBoxesInBlockDirectionEiRN3WTF7HashMapIPKNS_13InlineTextBoxESt4pairINS1_6VectorIPKNS_14SimpleFontDataELj0EEENS_13GlyphOverflowEENS1_7PtrHashIS5_EENS1_10HashTraitsIS5_EENSG_ISD_EEEERNS_21VerticalPositionCacheE
fun:_ZN7WebCore11RenderBlock37computeBlockDirectionPositionsForLineEPNS_13RootInlineBoxEPNS_7BidiRunERN3WTF7HashMapIPKNS_13InlineTextBoxESt4pairINS5_6VectorIPKNS_14SimpleFontDataELj0EEENS_13GlyphOverflowEENS5_7PtrHashIS9_EENS5_10HashTraitsIS9_EENSK_ISH_EEEERNS_21VerticalPositionCacheE
}
-{
- bug_66277
- Memcheck:Leak
- ...
- fun:*MalwareDetailsTest_*
-}