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

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

Issue 614323003: DevTools: enable by default disableAgentsWhenProfile experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: small change Created 6 years, 2 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: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 5bb826c9db8a51dd9e41416bdd1ba57943c4528c..70b90f5ee513318579327a11eda556db51d2c3c2 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -124,7 +124,7 @@ WebInspector.TimelinePanel = function()
this._onModeChanged();
this._detailsSplitView.show(this.element);
- WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.StateChanged, this._onProfilingStateChanged, this);
+ WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged, this);
}
WebInspector.TimelinePanel.OverviewMode = {
@@ -630,7 +630,6 @@ WebInspector.TimelinePanel.prototype = {
uiControl.label.classList.toggle("dimmed", !enabled);
}
this._recordingOptionUIControls.forEach(handler);
- WebInspector.inspectorView.setCurrentPanelLocked(!enabled);
},
/**
@@ -665,7 +664,7 @@ WebInspector.TimelinePanel.prototype = {
this._setUIControlsEnabled(true);
},
- _onProfilingStateChanged: function()
+ _onSuspendStateChanged: function()
{
this._updateToggleTimelineButton(this.toggleTimelineButton.toggled);
},
@@ -675,7 +674,7 @@ WebInspector.TimelinePanel.prototype = {
*/
_updateToggleTimelineButton: function(toggled)
{
- var isAcquiredInSomeTarget = WebInspector.profilingLock().isAcquired();
+ var isAcquiredInSomeTarget = WebInspector.targetManager.areTargetsSuspended();
aandrey 2014/10/15 18:14:06 we should do smth with the naming
loislo 2014/10/16 09:08:22 Done.
this.toggleTimelineButton.toggled = toggled;
if (toggled) {
this.toggleTimelineButton.title = WebInspector.UIString("Stop");

Powered by Google App Engine
This is Rietveld 408576698