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

Unified Diff: Source/devtools/front_end/timeline/TimelinePowerOverview.js

Issue 388963004: DevTools: get rid of the global capabilities set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 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
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
},
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698