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

Unified Diff: components/domain_reliability/test_util.cc

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: Created 3 years, 11 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
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;

Powered by Google App Engine
This is Rietveld 408576698