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

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: Rebase Created 7 years, 6 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 8732e30a2f8bb19d18f885a77c447c824301a2fd..69a14b8b8a0bce84d676c44c1375f966ecf36860 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