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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android Fixed Created 7 years, 5 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/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 2d0c4255db9441528954ce2e9da10c82e4edfeb8..3a53d22e00ca0602f065b96bd2242154e340edd6 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -104,7 +104,8 @@ void RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg) {
}
GpuProcessHostUIShim::GpuProcessHostUIShim(int host_id)
- : host_id_(host_id) {
+ : host_id_(host_id),
+ power_monitor_broadcaster_(this) {
g_hosts_by_id.Pointer()->AddWithID(this, host_id_);
}

Powered by Google App Engine
This is Rietveld 408576698