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: de016e52bd170d2d4f2344f9bf92d50478b649e0@63390 0039d316-1c4b-4281-b951-d872f2087c98

yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,ropik/chromium,adobe/chromium