| 237 | } |
| 238 | |
| 239 | bool Configurations::hasConfiguration(ConfigurationType configurationType) { |
| 240 | base::type::EnumType lIndex = LevelHelper::kMinValid; |
| 241 | bool result = false; |
| 242 | LevelHelper::forEachLevel(&lIndex, [&](void) -> bool { |
| 243 | if (hasConfiguration(LevelHelper::castFromInt(lIndex), configurationType)) { |
| 244 | result = true; |
| 245 | } |
| 246 | return result; |
| 247 | }); |
| 248 | return result; |
| 249 | } |
| 250 | |
| 251 | bool Configurations::hasConfiguration(Level level, ConfigurationType configurationType) { |
| 252 | base::threading::ScopedLock scopedLock(lock()); |