| 42 | #include <algorithm> |
| 43 | |
| 44 | static void AddApplicationEnabledParameters(std::vector<Parameter>& parameters, LayerControl default_control) { |
| 45 | for (auto paramater : parameters) { |
| 46 | if (paramater.builtin != LAYER_BUILTIN_UNORDERED) { |
| 47 | continue; |
| 48 | } |
| 49 | |
| 50 | return; // No need to add LAYER_BUILTIN_UNORDERED, it's in the list already |
| 51 | } |
| 52 | |
| 53 | Parameter applications_enabled_layers; |
| 54 | applications_enabled_layers.key = ::GetLabel(LAYER_BUILTIN_UNORDERED); |
| 55 | applications_enabled_layers.builtin = LAYER_BUILTIN_UNORDERED; |
| 56 | applications_enabled_layers.control = ::MapToUnordered(default_control); |
| 57 | applications_enabled_layers.overridden_rank = Parameter::NO_RANK; |
| 58 | parameters.push_back(applications_enabled_layers); |
| 59 | } |
| 60 | |
| 61 | Configuration Configuration::Create(const LayerManager& layers, const std::string& configuration_key) { |
| 62 | Configuration result; |
no test coverage detected