Fix flakiness in unload browser test, take two. I was able to repro this on my Linux box (~10% of the time). The issue turned out to be that the beforeunload ack from the renderer would sometimes come after the second time that we try to close the tab. The browser wouldn't put up the beforeunload prompt because it was waiting for the previous ack. The old ui test had a 10 second sleep here which masked this.
Fix flakiness in unload browser test, take two. I was able to repro this on my Linux box (~10% of the time). The issue turned out to be that the beforeunload ack from the renderer would sometimes come after the second time that we try to close the tab. The browser wouldn't put up the beforeunload prompt because it was waiting for the previous ack. The old ui test had a 10 second sleep here which masked this.

BUG=123110
Review URL: https://chromiumcodereview.appspot.com/10065041

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@132217 0039d316-1c4b-4281-b951-d872f2087c98

adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium