Refactored all the state checking in guest_view.js into one function.
commitbf1d07c7c20b8dee165ba307ace8af7b8aef7ce9
authorpaulmeyer <paulmeyer@chromium.org>
Tue, 9 Dec 2014 18:58:22 +0000 (9 10:58 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Dec 2014 18:58:55 +0000 (9 18:58 +0000)
tree1d671a790a9f149b0cb58f30739a9fecfaa68e04
parent47a05d0663b55a57c5ef73de86e9863d041f4383
Refactored all the state checking in guest_view.js into one function.

This reduced the state checking code in both volume and complexity.

BUG=431002

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

Cr-Commit-Position: refs/heads/master@{#307512}
extensions/renderer/resources/guest_view/guest_view.js