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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/error_depending_on_url.js

Issue 1797313003: Add a histogram (Net.PacResultForStrippedUrl) that estimates how often PAC scripts depend on the UR… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update some more comments per mpearson's feedback. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698