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

Unified Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 472263002: DevTools: make profiling lock global rather than per Target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/sdk/CSSStyleModel.js ('k') | Source/devtools/front_end/sdk/DebuggerModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/DOMModel.js
diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
index 0d3f0d3a33ffa9e3346fafacb5aa45c922ae3172..be592b3aeaf03629715ce15d6bfc6d1500a899b6 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -949,7 +949,7 @@ WebInspector.DOMModel = function(target) {
this._highlighter = this._defaultHighlighter;
if (WebInspector.experimentsSettings.disableAgentsWhenProfile.isEnabled())
- target.profilingLock.addEventListener(WebInspector.Lock.Events.StateChanged, this._profilingStateChanged, this);
+ WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.StateChanged, this._profilingStateChanged, this);
this._agent.enable();
}
@@ -970,7 +970,7 @@ WebInspector.DOMModel.Events = {
WebInspector.DOMModel.prototype = {
_profilingStateChanged: function()
{
- if (this.target().profilingLock.isAcquired())
+ if (WebInspector.profilingLock().isAcquired())
this._agent.disable();
else
this._agent.enable();
« no previous file with comments | « Source/devtools/front_end/sdk/CSSStyleModel.js ('k') | Source/devtools/front_end/sdk/DebuggerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698