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

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
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>
afakhry 2015/01/22 22:27:23 To mimic the behavior of the old ChromeOS's offlin
afakhry 2015/01/23 01:35:46 @edwardjung, @arv: Can you please confirm that thi
afakhry 2015/01/23 01:42:01 A bit of context: ChromeOS used to use: - src/chro
edwardjung 2015/01/23 11:18:28 It makes sense to consolidate. Is src/chrome/rende
edwardjung 2015/01/23 11:18:28 As long as there will always be something in the d
afakhry 2015/01/23 17:49:25 The diagnose button is only specific to ChromeOS.
// Show control buttons.
if (loadTimeData.valueExists('reloadButton') &&

Powered by Google App Engine
This is Rietveld 408576698