Slight simplification to prompt code

R=abarth@chromium.org

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