Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: content/browser/power_profiler/power_event.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | content/browser/renderer_host/input/web_input_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698