| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |