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

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

Issue 235883010: Revert 262846, as the revert has now been merged to M35. (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/chrome/renderer/resources/neterror.html ('k') | trunk/src/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: trunk/src/chrome/renderer/resources/neterror.js
===================================================================
--- trunk/src/chrome/renderer/resources/neterror.js (revision 263955)
+++ trunk/src/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 | « trunk/src/chrome/renderer/resources/neterror.html ('k') | trunk/src/chrome/test/data/mock-link-doctor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698