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..2300b18b5e06e74d1602b5d3326f65d9d60e0d06 100644 |
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc |
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc |
@@ -103,15 +103,18 @@ void RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg) { |
ui_shim->OnMessageReceived(msg); |
} |
-GpuProcessHostUIShim::GpuProcessHostUIShim(int host_id) |
+GpuProcessHostUIShim::GpuProcessHostUIShim(int host_id, bool single_process) |
: host_id_(host_id) { |
g_hosts_by_id.Pointer()->AddWithID(this, host_id_); |
+ if (!single_process) |
+ power_monitor_broadcaster_.reset(new PowerMonitorMessageBroadcaster(this)); |
} |
// static |
-GpuProcessHostUIShim* GpuProcessHostUIShim::Create(int host_id) { |
+GpuProcessHostUIShim* GpuProcessHostUIShim::Create(int host_id, |
+ bool single_process) { |
jar (doing other things)
2013/07/16 17:15:33
nit: align argument indentation
|
DCHECK(!FromID(host_id)); |
- return new GpuProcessHostUIShim(host_id); |
+ return new GpuProcessHostUIShim(host_id, single_process); |
} |
// static |