Switch from using std::min to std::max to fix an obvious bug in tab_proxy. Using std::min in these cases limits the loops to only 0 or 1 iteration, so the loops were never waiting for the given timeout before returning an error. 
Switch from using std::min to std::max to fix an obvious bug in tab_proxy.
Using std::min in these cases limits the loops to only 0 or 1 iteration, so the
loops were never waiting for the given timeout before returning an error. 

BUG=none
TEST=Tests which were passing before should continue to pass, some flaky ones
may start working because we are waiting for the correct timeout now.
Patch by satish@chromium.org
Original review: http://codereview.chromium.org/1530034

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@44553 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser