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

Unified Diff: content/browser/power_profiler/power_event.cc

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/power_profiler/power_event.cc
diff --git a/content/browser/power_profiler/power_event.cc b/content/browser/power_profiler/power_event.cc
new file mode 100644
index 0000000000000000000000000000000000000000..52d3fd7067769e564db3d7c1dce9b342be756c35
--- /dev/null
+++ b/content/browser/power_profiler/power_event.cc
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/power_profiler/power_event.h"
+
+namespace content {
+
+const char* kPowerTypeNames[] = {
+ "SoC_Package",
+ "Device"
+};
+
+COMPILE_ASSERT(arraysize(kPowerTypeNames) == PowerEvent::ID_COUNT,
+ kPowerTypeNames_incorrect_size);
+
+} // namespace content
« no previous file with comments | « content/browser/power_profiler/power_event.h ('k') | content/browser/power_profiler/power_profiler_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698