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

Unified Diff: Source/devtools/front_end/main/Main.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/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 3610f934df92819b9a72c8812b73281b2aae9eed..03516f7c79b0bedacca78139cb53fc59ee22cee4 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -161,6 +161,7 @@ WebInspector.Main.prototype = {
if (InspectorFrontendHost.isUnderTest()) {
// Enable experiments for testing.
+ Runtime.experiments.enableForTest("disableAgentsWhenProfile");
var testPath = WebInspector.settings.testPath.get();
if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers/") !== -1)
Runtime.experiments.enableForTest("layersPanel");
@@ -169,7 +170,10 @@ WebInspector.Main.prototype = {
if (testPath.indexOf("documentation/") !== -1)
Runtime.experiments.enableForTest("documentation");
} else {
- Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents"]);
+ Runtime.experiments.setDefaultExperiments([
+ "timelineOnTraceEvents",
+ "disableAgentsWhenProfile",
+ ]);
}
},

Powered by Google App Engine
This is Rietveld 408576698