Minor cleanup in network_service.

This ports https://codereview.chromium.org/714643003/ mistakenly landed
in Chromium.

BUG=None
R=davemoore@chromium.org

Review URL: https://codereview.chromium.org/799973002