OSDN Git Service

[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker
authorChalard Jean <jchalard@google.com>
Fri, 8 Jun 2018 05:24:49 +0000 (14:24 +0900)
committerChalard Jean <jchalard@google.com>
Fri, 5 Oct 2018 07:39:53 +0000 (16:39 +0900)
commitb9d45fd6e903f3b203a1c096096734bc6aabeb68
tree8f2f9b70fbdce739f33864c100d031bc183a4df2
parent655ad158905ed825c01b084a052dadbf4f873699
[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker

This contains a significant logic change : it will load the
deprecated proxy settings synchronously instead of on the next
run loop. I think this is okay because it would happen almost
immediately anyway, and there is nothing in ConnectivityService
that might be changing this setting in the mean time. As for
the possibility that this was executed in the handler because
of possible disk access, I want to point out that the
loadGlobalProxy method that now calls this was already doing
those same similar accesses.

Test: runtest
Change-Id: Idc6f260e2a337689dc274eb758eb00f6a31089bb
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/connectivity/ProxyTracker.java