Additional debugging for chromium-os:7864 Added additional checking to ensure that libcros calls are made from the UI thread.
Additional debugging for chromium-os:7864
Added additional checking to ensure that libcros calls are made from the UI thread.

I have been unable to establish any obvious cause for 7864. However, it is possible
that chromeos::NetworkLibrary calls are being made outside the UI thread. This will
catch any such calls, crashing where the call is made instead of at some later point.

I also audited network_library.cc to ensure that we check CrosLibrary::EnsureLoaded() around all cros calls.

BUG=http://code.google.com/p/chromium-os/issues/detail?id=7864
TEST=run Chrome on ChromeOS, make some changes to the networking menu, and make sure Chrome doesn't crash.

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

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@63390 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