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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2759223002: Revert of DevTools: launch What's New from experiments (Closed)
Patch Set: Created 3 years, 9 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 | « third_party/WebKit/Source/devtools/front_end/help/module.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 69731ce65ec9a9f9f32c48291011a26e16c02377..677d0e14ffd2bf34406104abf086d4747c6c4555 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -107,6 +107,7 @@
Runtime.experiments.register('objectPreviews', 'Object previews', true);
Runtime.experiments.register('persistence2', 'Persistence 2.0');
Runtime.experiments.register('persistenceValidation', 'Validate persistence bindings');
+ Runtime.experiments.register('releaseNote', 'Release note', true);
Runtime.experiments.register('requestBlocking', 'Request blocking', true);
Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Timeline', true);
Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
@@ -131,6 +132,8 @@
Runtime.experiments.enableForTest('cssTrackerPanel');
if (testPath.indexOf('audits2/') !== -1)
Runtime.experiments.enableForTest('audits2');
+ if (testPath.indexOf('help/') !== -1)
+ Runtime.experiments.enableForTest('releaseNote');
}
Runtime.experiments.setDefaultExperiments(['persistenceValidation']);
@@ -740,7 +743,8 @@
var helpSubMenu = contextMenu.namedSubMenu('mainMenuHelp');
helpSubMenu.appendAction('settings.documentation');
- helpSubMenu.appendItem('Release Notes', () => InspectorFrontendHost.openInNewTab(Help.latestReleaseNote().link));
+ if (Runtime.experiments.isEnabled('releaseNote'))
+ helpSubMenu.appendItem('Release Notes', () => InspectorFrontendHost.openInNewTab(Help.latestReleaseNote().link));
contextMenu.show();
}
};
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/help/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698