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

Unified Diff: chrome/renderer/resources/neterror.js

Issue 856643002: Viewing cached webpages while offline is not available on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/neterror.js
diff --git a/chrome/renderer/resources/neterror.js b/chrome/renderer/resources/neterror.js
index 360d0b840c2b73591e5cc850e4972828a0963544..81de561b5d849c1b5ab3562a74f21ac544661845 100644
--- a/chrome/renderer/resources/neterror.js
+++ b/chrome/renderer/resources/neterror.js
@@ -131,12 +131,14 @@ function onDocumentLoad() {
detailsButton.classList.add('singular');
}
+<if expr="not chromeos">
// Hide the details button if there are no details to show.
if (loadTimeData.valueExists('summary') &&
!loadTimeData.getValue('summary').msg) {
detailsButton.style.display = 'none';
document.getElementById('help-box-outer').style.display = 'block';
}
+</if>
// Show control buttons.
if (loadTimeData.valueExists('reloadButton') &&
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698