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

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

Issue 2649023007: DevTools: implement release note behind an experiment (Closed)
Patch Set: make test platform independent Created 3 years, 10 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: 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 3e144fef0065de674d93e1a4519aab9bc4999386..33331dc3e8b4a72dabcfb8238d6985c83fc02790 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 @@ Main.Main = class {
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);
@@ -130,6 +131,8 @@ Main.Main = class {
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', 'timelineMultipleMainViews']);
@@ -278,6 +281,8 @@ Main.Main = class {
console.timeStamp('Main._lateInitialization');
this._registerShortcuts();
Extensions.extensionServer.initializeExtensions();
+ if (!Host.isUnderTest())
+ Help.showReleaseNoteIfNeeded();
}
_registerForwardedShortcuts() {

Powered by Google App Engine
This is Rietveld 408576698