DescriptionPull HostListDirectoryGrabber out to a separate class.
This makes Chromoting.java completely single-threaded. Auth tokens are
still handled in Chromoting.java, but all the host-list fetching takes
place in HostListLoader.java.
The error-handling is improved to match more closely with what the
web-app does in host_list.js. Otherwise, I've tried to keep the
error-handling the same as before. Previously, errors from the
AccountService and host-list fetching were all handled in the same
place. For example, all IOExceptions were assumed to be caused by the
OAuth token being invalid. Now I've added an enumeration of possible
errors from host-list fetching, and we only refresh the auth
token if the error was explicitly an authentication failure.
Future CLs will improve the error-handling, reusing many of the same
localized strings as the web-app.
BUG=304719
NOTRY=true
TBR=sergeyu
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251838
Patch Set 1 #
Total comments: 8
Patch Set 2 : Add Host class and address comments #
Total comments: 19
Patch Set 3 : Address comments #Patch Set 4 : Fix FindBugs warnings #
Messages
Total messages: 12 (0 generated)
|