| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/power_profiler/power_event.h" | 5 #include "content/browser/power_profiler/power_event.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 const char* kPowerTypeNames[] = { | 9 const char* kPowerTypeNames[] = { |
| 10 "SoC_Package", | 10 "SoC_Package", |
| 11 "Device" | 11 "Device" |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 COMPILE_ASSERT(arraysize(kPowerTypeNames) == PowerEvent::ID_COUNT, | 14 static_assert(arraysize(kPowerTypeNames) == PowerEvent::ID_COUNT, |
| 15 kPowerTypeNames_incorrect_size); | 15 "kPowerTypeNames array has incorrect size"); |
| 16 | 16 |
| 17 } // namespace content | 17 } // namespace content |
| OLD | NEW |