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

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

Issue 20604002: Add Diagnose Errors button to navigation error page (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 5 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/localized_error.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.html
diff --git a/chrome/renderer/resources/neterror.html b/chrome/renderer/resources/neterror.html
index 41c80c8d92b0798cd22c06bdf86086209c0af2c5..bfe79a8ef364d376cf2814b236ec602d6508389f 100644
--- a/chrome/renderer/resources/neterror.html
+++ b/chrome/renderer/resources/neterror.html
@@ -301,6 +301,10 @@ function toggleHelpBox() {
}
}
+function diagnoseErrors() {
+ location = "chrome-extension://kodldpbjkkmmnilagfdheibampofhaom/index.html";
+}
+
// Subframes use a different layout but the same html file. This is to make it
// easier to support platforms that load the error page via different
// mechanisms (Currently just iOS).
@@ -339,6 +343,8 @@ function updateForDnsProbe(strings) {
<div class="suggestion-header" jsvalues=".innerHTML:header"></div>
<div class="suggestion-body" jsvalues=".innerHTML:body"></div>
</div>
+ <button id="diagnose-button" onclick="diagnoseErrors()"
Dmitry Polukhin 2013/07/26 00:33:41 Please show this button only in case of Chrome OS.
Zachary Kuznia 2013/07/26 00:54:41 Done.
+ jscontent="diagnose">Diagnose</button>
<div class="error-code" jscontent="errorCode"></div>
</div>
</div>
« no previous file with comments | « chrome/common/localized_error.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698