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

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

Issue 614323003: DevTools: enable by default disableAgentsWhenProfile experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unnecessary line was removed 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/sdk/DOMModel.js
diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
index d0db42c94c84718f28257a0d5089bcdd40e09ce1..d78916cef9ca2a1f724c47fc667aa2114f726612 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -948,9 +948,6 @@ WebInspector.DOMModel = function(target) {
this._defaultHighlighter = new WebInspector.DefaultDOMNodeHighlighter(this._agent);
this._highlighter = this._defaultHighlighter;
- if (Runtime.experiments.isEnabled("disableAgentsWhenProfile"))
- WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.StateChanged, this._profilingStateChanged, this);
-
this._agent.enable();
}
@@ -968,12 +965,14 @@ WebInspector.DOMModel.Events = {
}
WebInspector.DOMModel.prototype = {
- _profilingStateChanged: function()
+ suspendModel: function()
{
- if (WebInspector.profilingLock().isAcquired())
- this._agent.disable();
- else
- this._agent.enable();
+ this._agent.disable();
+ },
+
+ resumeModel: function()
+ {
+ this._agent.enable();
},
/**

Powered by Google App Engine
This is Rietveld 408576698