Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This proxy script throws an error if the URL does not contain the substring | |
| 6 // "DontThrowError". | |
| 7 function FindProxyForURL(url, host) { | |
| 8 if (url.indexOf("DontThrowError") == -1) { | |
| 9 ErrorUndefinedFunction(); | |
| 10 return -1; | |
| 11 } | |
| 12 return "PROXY foopy:42"; | |
| 13 } | |
| OLD | NEW |