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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/dns_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 has different DNS dependencies based on whether the URL
6 // contains "UseMyIpAddress". The final proxy list however is the same.
7 function FindProxyForURL(url, host) {
8 if (url.indexOf("UseMyIpAddress") == -1) {
9 if (!myIpAddress())
10 return null;
11 } else {
12 if (!dnsResolve(host))
13 return null;
14 }
15
16 return "PROXY foopy:47";
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698