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

Unified Diff: chrome/browser/resources/help/help.js

Issue 10541013: Add relaunch prompt to linux help page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 8 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 | « chrome/browser/resources/help/help.html ('k') | chrome/browser/ui/webui/help/help_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/help/help.js
diff --git a/chrome/browser/resources/help/help.js b/chrome/browser/resources/help/help.js
index 9a898b833843d8b401b4c0ada5d84b7ed5404f87..2b42d268898fe96220ae179a8bb1d51f780404e2 100644
--- a/chrome/browser/resources/help/help.js
+++ b/chrome/browser/resources/help/help.js
@@ -112,17 +112,16 @@ cr.define('help', function() {
} else if (status == 'failed') {
this.setUpdateImage_('failed');
$('update-status').innerHTML = message;
- } else if (status == 'disabled') {
- var container = $('update-status-container');
- if (container)
- container.hidden = true;
- return;
}
- if (!cr.isMac)
- $('update-percentage').hidden = status != 'updating';
+ var container = $('update-status-container');
+ if (container) {
+ container.hidden = status == 'disabled';
+ $('relaunch').hidden = status != 'nearly_updated';
- $('relaunch').hidden = status != 'nearly_updated';
+ if (!cr.isMac)
+ $('update-percentage').hidden = status != 'updating';
+ }
},
/**
« no previous file with comments | « chrome/browser/resources/help/help.html ('k') | chrome/browser/ui/webui/help/help_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698