| Index: Source/devtools/front_end/timeline/TimelinePowerOverview.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelinePowerOverview.js b/Source/devtools/front_end/timeline/TimelinePowerOverview.js
|
| index b6bfe15b53a6a35ad187eb6486e21f52487b92ee..dc7ba87f7f5aa1d092c6db3c1fe2a5662dfbfcb1 100644
|
| --- a/Source/devtools/front_end/timeline/TimelinePowerOverview.js
|
| +++ b/Source/devtools/front_end/timeline/TimelinePowerOverview.js
|
| @@ -108,13 +108,13 @@ WebInspector.TimelinePowerOverview.prototype = {
|
|
|
| timelineStarted: function()
|
| {
|
| - if (Capabilities.canProfilePower)
|
| + if (WebInspector.targetManager.activeTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower))
|
| WebInspector.powerProfiler.startProfile();
|
| },
|
|
|
| timelineStopped: function()
|
| {
|
| - if (Capabilities.canProfilePower)
|
| + if (WebInspector.targetManager.activeTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower))
|
| WebInspector.powerProfiler.stopProfile();
|
| },
|
|
|
|
|