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

Side by Side Diff: components/domain_reliability/google_configs.cc

Issue 2289763003: Remove stl_util use from domain_reliability. (Closed)
Patch Set: win Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/domain_reliability/google_configs.h" 5 #include "components/domain_reliability/google_configs.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 config->success_sample_rate = 0.05; 558 config->success_sample_rate = 0.05;
559 config->failure_sample_rate = 1.00; 559 config->failure_sample_rate = 1.00;
560 config->path_prefixes.clear(); 560 config->path_prefixes.clear();
561 return config; 561 return config;
562 } 562 }
563 563
564 } // namespace 564 } // namespace
565 565
566 // static 566 // static
567 void GetAllGoogleConfigs( 567 void GetAllGoogleConfigs(
568 std::vector<DomainReliabilityConfig*>* configs_out) { 568 std::vector<std::unique_ptr<DomainReliabilityConfig>>* configs_out) {
569 configs_out->clear(); 569 configs_out->clear();
570 570
571 for (auto& params : kGoogleConfigs) { 571 for (auto& params : kGoogleConfigs) {
572 configs_out->push_back(CreateGoogleConfig(params, false).release()); 572 configs_out->push_back(CreateGoogleConfig(params, false));
573 if (params.duplicate_for_www) 573 if (params.duplicate_for_www)
574 configs_out->push_back(CreateGoogleConfig(params, true).release()); 574 configs_out->push_back(CreateGoogleConfig(params, true));
575 } 575 }
576 } 576 }
577 577
578 } // namespace domain_reliability 578 } // namespace domain_reliability
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698