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

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

Issue 137623011: Switch to using the new Link Doctor API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove bonus line from a merge conflict Created 6 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.html ('k') | chrome/test/data/mock-link-doctor.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/neterror.js
===================================================================
--- chrome/renderer/resources/neterror.js (revision 253247)
+++ chrome/renderer/resources/neterror.js (working copy)
@@ -53,6 +53,13 @@
classList['last_icon_class'] = newClass;
}
+// Does a search using |baseSearchUrl| and the text in the search box.
+function search(baseSearchUrl) {
+ var searchTextNode = document.getElementById('search-box');
+ document.location = baseSearchUrl + searchTextNode.value;
+ return false;
+}
+
<if expr="is_macosx or is_ios or is_linux or is_android">
// Re-orders buttons. Used on Mac, Linux, and Android, where reload should go
// on the right.
« no previous file with comments | « chrome/renderer/resources/neterror.html ('k') | chrome/test/data/mock-link-doctor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698