Modified run_loop to use new WaitMany API.

R=viettrungluu@chromium.org
BUG=365436

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