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

Unified Diff: components/domain_reliability/google_configs.cc

Issue 2289763003: Remove stl_util use from domain_reliability. (Closed)
Patch Set: win Created 4 years, 4 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 f3147c30f3ac53e240100f32bc7cbff24213d4a8..00f55d22141a7ffab4c08e71a59eea6519d03a90 100644
--- a/components/domain_reliability/google_configs.cc
+++ b/components/domain_reliability/google_configs.cc
@@ -565,13 +565,13 @@ static std::unique_ptr<DomainReliabilityConfig> CreateGoogleConfig(
// static
void GetAllGoogleConfigs(
- std::vector<DomainReliabilityConfig*>* configs_out) {
+ std::vector<std::unique_ptr<DomainReliabilityConfig>>* configs_out) {
configs_out->clear();
for (auto& params : kGoogleConfigs) {
- configs_out->push_back(CreateGoogleConfig(params, false).release());
+ configs_out->push_back(CreateGoogleConfig(params, false));
if (params.duplicate_for_www)
- configs_out->push_back(CreateGoogleConfig(params, true).release());
+ configs_out->push_back(CreateGoogleConfig(params, true));
}
}

Powered by Google App Engine
This is Rietveld 408576698