Moved one check outside of the loop and moved another one under an if statement  Review URL: http://codereview.chromium.org/821001
Moved one check outside of the loop and moved another one under an if statement 
Review URL: http://codereview.chromium.org/821001

git-svn-id: b158db1e4b4ab85d4c9e510fdef4b1e8c614b15b@4082 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh