Index: Source/devtools/front_end/audits/AuditLauncherView.js |
diff --git a/Source/devtools/front_end/audits/AuditLauncherView.js b/Source/devtools/front_end/audits/AuditLauncherView.js |
index c1f4f37b7d80f2b1e7c3e94d8960bc76f245c1b0..994c769224b4b68755ae65e8ac67e7d2c5b50b90 100644 |
--- a/Source/devtools/front_end/audits/AuditLauncherView.js |
+++ b/Source/devtools/front_end/audits/AuditLauncherView.js |
@@ -63,7 +63,7 @@ WebInspector.AuditLauncherView = function(auditController) |
var target = this._auditController.target(); |
target.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this); |
target.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestFinished, this._onRequestFinished, this); |
- target.profilingLock.addEventListener(WebInspector.Lock.Events.StateChanged, this._updateButton, this); |
+ WebInspector.profilingLock.addEventListener(WebInspector.Lock.Events.StateChanged, this._updateButton, this); |
var defaultSelectedAuditCategory = {}; |
defaultSelectedAuditCategory[WebInspector.AuditLauncherView.AllCategoriesKey] = true; |
@@ -144,11 +144,11 @@ WebInspector.AuditLauncherView.prototype = { |
this._toggleUIComponents(this._auditRunning); |
var target = this._auditController.target(); |
if (this._auditRunning) { |
- target.profilingLock.acquire(); |
+ WebInspector.profilingLock.acquire(); |
this._startAudit(); |
} else { |
this._stopAudit(); |
- target.profilingLock.release(); |
+ WebInspector.profilingLock.release(); |
} |
}, |
@@ -327,7 +327,7 @@ WebInspector.AuditLauncherView.prototype = { |
_updateButton: function() |
{ |
var target = this._auditController.target(); |
- var enable = this._auditRunning || (this._currentCategoriesCount && !target.profilingLock.isAcquired()); |
+ var enable = this._auditRunning || (this._currentCategoriesCount && !WebInspector.profilingLock.isAcquired()); |
this._launchButton.textContent = this._auditRunning ? WebInspector.UIString("Stop") : WebInspector.UIString("Run"); |
this._launchButton.disabled = !enable; |
this._launchButton.title = enable ? "" : WebInspector.anotherProfilerActiveLabel(); |