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

Unified Diff: net/data/proxy_resolver_v8_unittest/resolve_host.js

Issue 9383010: Strip brackets from IPv6 host literals before passing down to PAC script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add copyright to JS file Created 8 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 | « no previous file | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/proxy_resolver_v8_unittest/resolve_host.js
diff --git a/net/data/proxy_resolver_v8_unittest/resolve_host.js b/net/data/proxy_resolver_v8_unittest/resolve_host.js
new file mode 100644
index 0000000000000000000000000000000000000000..0461de9862872457f98499b019ecda75714e5209
--- /dev/null
+++ b/net/data/proxy_resolver_v8_unittest/resolve_host.js
@@ -0,0 +1,9 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This script passes the URL's host to dnsResolveEx().
+function FindProxyForURL(url, host) {
+ dnsResolveEx(host);
+ return 'DIRECT';
+}
« no previous file with comments | « no previous file | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698