summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-02-05 04:36:02 +0000
committerAlex Deymo <deymo@google.com>2017-02-13 14:45:44 +0000
commit3582194c10c47ffcda9ad7881e7fa6eed2404406 (patch)
tree109986c82f510264de36a491e76bcd5683ef033a /scripts/update_payload/format_utils_unittest.py
parentb8437be38d60be604b50581d3c6b05fa23ac2f59 (diff)
Allow to cancel a proxy resolution request.
After calling GetProxiesForUrl(), there was no way to prevent the proxy resolver from calling the passed callback once the response is ready. This implies that the object passed in the callback (normally as the "data" pointer) must be kept alive until the callback comes back. This patch allows to cancel an ongoing request and converts the passed callback to a base::Callback instead of using a raw pointer. Bug: 34178297 Test: Added unittests. Change-Id: Ie544d0230fd0c2dc85c6b9eaca9b5b13702516fa
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions