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

Unified Diff: components/domain_reliability/google_configs.cc

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: Add a TODO 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/google_configs.cc
diff --git a/components/domain_reliability/google_configs.cc b/components/domain_reliability/google_configs.cc
index 00f55d22141a7ffab4c08e71a59eea6519d03a90..d61c9c2ca4b0868b15c8986fa14bf3377c54f5ce 100644
--- a/components/domain_reliability/google_configs.cc
+++ b/components/domain_reliability/google_configs.cc
@@ -551,10 +551,11 @@ static std::unique_ptr<DomainReliabilityConfig> CreateGoogleConfig(
GURL::Replacements replacements;
replacements.SetPathStr(kGoogleOriginSpecificCollectorPathString);
config->collectors.push_back(
- new GURL(config->origin.ReplaceComponents(replacements)));
+ base::MakeUnique<GURL>(config->origin.ReplaceComponents(replacements)));
}
for (size_t i = 0; i < arraysize(kGoogleStandardCollectors); i++)
- config->collectors.push_back(new GURL(kGoogleStandardCollectors[i]));
+ config->collectors.push_back(
+ base::MakeUnique<GURL>(kGoogleStandardCollectors[i]));
config->success_sample_rate = 0.05;
config->failure_sample_rate = 1.00;
config->path_prefixes.clear();

Powered by Google App Engine
This is Rietveld 408576698