Index: components/domain_reliability/test_util.cc |
diff --git a/components/domain_reliability/test_util.cc b/components/domain_reliability/test_util.cc |
index bb060fa069cd922430d2bd2620ccfdf4ec14baf0..5bfbb2e195a6229964d723d923dfb68c828a511c 100644 |
--- a/components/domain_reliability/test_util.cc |
+++ b/components/domain_reliability/test_util.cc |
@@ -6,6 +6,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
+#include "base/memory/ptr_util.h" |
#include "components/domain_reliability/scheduler.h" |
#include "net/url_request/url_request_status.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -169,7 +170,8 @@ std::unique_ptr<DomainReliabilityConfig> MakeTestConfigWithOrigin( |
const GURL& origin) { |
DomainReliabilityConfig* config = new DomainReliabilityConfig(); |
config->origin = origin; |
- config->collectors.push_back(new GURL("https://exampleuploader/upload")); |
+ config->collectors.push_back( |
+ base::MakeUnique<GURL>("https://exampleuploader/upload")); |
config->failure_sample_rate = 1.0; |
config->success_sample_rate = 0.0; |