Fix crash that can occur if PumpOutPendingPaintMessages is called outside the context of MessagePump::Run.
Fix crash that can occur if PumpOutPendingPaintMessages is called outside the context of MessagePump::Run.

R=jar

Review URL: http://codereview.chromium.org/3137

git-svn-id: http://src.chromium.org/svn/trunk/src@2415 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 615e108452c5e43b8be21dd08b32ee90f47658d2
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser