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

Unified Diff: third_party/WebKit/Source/devtools/front_end/help/Help.js

Issue 2935393002: DevTools: stop whats new from opening on fresh profile (Closed)
Patch Set: tests Created 3 years, 6 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/LayoutTests/inspector/help/release-note-unit-expected.txt ('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/help/Help.js
diff --git a/third_party/WebKit/Source/devtools/front_end/help/Help.js b/third_party/WebKit/Source/devtools/front_end/help/Help.js
index fa39639d12cf94dc1b61ed6b29ef906e069a0e2f..67316d57492794c8f5a62802b2b18b72fa3ee078 100644
--- a/third_party/WebKit/Source/devtools/front_end/help/Help.js
+++ b/third_party/WebKit/Source/devtools/front_end/help/Help.js
@@ -33,6 +33,10 @@ Help.showReleaseNoteIfNeeded = function() {
* @param {number} latestVersion
*/
Help._showReleaseNoteIfNeeded = function(lastSeenVersion, latestVersion) {
+ if (!lastSeenVersion) {
+ Help.releaseNoteVersionSetting().set(latestVersion);
+ return;
+ }
if (lastSeenVersion >= latestVersion)
return;
Help.releaseNoteVersionSetting().set(latestVersion);
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/help/release-note-unit-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698