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

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

Issue 23434002: DNS probes: several tweaks to error page updating (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix mmenke's nit from the original CL Created 7 years, 4 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.html ('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 2dd8934698c204eb01e3e2a8948fec5c642e7165..c108535d4c38589dec20551307d8285d8bab6950 100644
--- a/chrome/renderer/resources/neterror.js
+++ b/chrome/renderer/resources/neterror.js
@@ -28,9 +28,15 @@ if (window.top.location != window.location)
document.documentElement.setAttribute('subframe', '');
function updateForDnsProbe(strings) {
+ i18nTemplate.process(document, strings);
var context = new JsEvalContext(strings);
- jstProcess(context, document.getElementById('help-box-outer'));
- jstProcess(context, document.getElementById('details'));
+ jstProcess(context, document.getElementById('t'));
+}
+
+function updateIconClass(classList, newClass) {
+ classList.remove('icon-generic');
+ classList.remove('icon-offline');
+ classList.add(newClass);
mmenke 2013/08/26 19:34:42 I wonder about this scaling. Not too bad with two
Deprecated (see juliatuttle) 2013/08/26 20:24:40 Agreed. If it got to be more than two or three, I
Deprecated (see juliatuttle) 2013/08/26 21:44:17 Alright, fixed. It now stashes the last name in a
}
<if expr="is_macosx or is_ios or is_linux or is_android">
« no previous file with comments | « chrome/renderer/resources/neterror.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698