Tracing showed that the resource bundle lock was held for long periods of time, as much as 3.5ms.  Altough the lock is not contended in this case, be more precise about when we need to hold the lock.  Also clean up a static initialization to use LazyInstance. Review URL: http://codereview.chromium.org/9246
Tracing showed that the resource bundle lock was held for long periods of time, as much as 3.5ms.  Altough the lock is not contended in this case, be more precise about when we need to hold the lock.  Also clean up a static initialization to use LazyInstance.
Review URL: http://codereview.chromium.org/9246

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

Former-commit-id: d426acf8cefdb94a9feb2f3d578356024b1ceab3
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