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

Unified Diff: net/data/proxy_resolver_v8_tracing_unittest/return_url_as_proxy.js

Issue 1944983002: Revert "Add a histogram (Net.PacResultForStrippedUrl) that estimates how often PAC scripts depend o… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
Index: net/data/proxy_resolver_v8_tracing_unittest/return_url_as_proxy.js
diff --git a/net/data/proxy_resolver_v8_tracing_unittest/return_url_as_proxy.js b/net/data/proxy_resolver_v8_tracing_unittest/return_url_as_proxy.js
deleted file mode 100644
index fad3c85aabb33a446e197b2bc61c1c426e0b01d6..0000000000000000000000000000000000000000
--- a/net/data/proxy_resolver_v8_tracing_unittest/return_url_as_proxy.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2016 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 proxy script returns a proxy list that encodes the URL that was passed
-// in.
-
-function convertUrlToHostname(url) {
- // Turn the URL into something that resembles a hostname.
- var result = encodeURIComponent(url);
- return result.replace(/%/g, "x");
-}
-
-function FindProxyForURL(url, host) {
- return "PROXY " + convertUrlToHostname(url) + ":99";
-}
« no previous file with comments | « net/data/proxy_resolver_v8_tracing_unittest/error_depending_on_url.js ('k') | net/proxy/proxy_resolver_v8_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698