Resolve conflict between two policy::kMaxValue
Both components/policy/core/common/cloud/machine_level_user_cloud_policy_metrics.h and components/policy/core/common/cloud/enterprise_metrics.h define policy::kMaxValue in two different enums. If code includes both headers, it won't compile and this happens in some jumbo build configurations. This patch changes one of the enums to use enum class so that the symbols are in different namespaces. (One will shadow the other but as long as they are used correctly it will be fine) Bug: 905702 Change-Id: Ia4dd0c89dc8ec5c23c516e90eae7f6c3256a232a Reviewed-on: https://chromium-review.googlesource.com/c/1344129Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#609769}
Showing
Please register or sign in to comment