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

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

Issue 916093003: Intersitial page updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Optimise icons, update secondary button colour Created 5 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
« no previous file with comments | « chrome/renderer/resources/neterror.css ('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 6b3a9619d3153daa347d344b07ad3d30d9be5093..592964345ac29a3f04254ae6e09ee3dafe671fd8 100644
--- a/chrome/renderer/resources/neterror.js
+++ b/chrome/renderer/resources/neterror.js
@@ -152,6 +152,13 @@ function onDocumentLoad() {
loadTimeData.valueExists('staleLoadButton') &&
loadTimeData.getValue('staleLoadButton').msg) {
controlButtonDiv.hidden = false;
+
+ // Set the secondary button state in the cases of two call to actions.
+ // Reload is secondary to stale load.
+ if (loadTimeData.valueExists('staleLoadButton') &&
+ loadTimeData.getValue('staleLoadButton').msg) {
+ reloadButton.classList.add('secondary-button');
+ }
}
// Add a main message paragraph.
« no previous file with comments | « chrome/renderer/resources/neterror.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698