Use the correct thread to access g_browser_process.
commit885e73bd3e25c15b4cbcf645a18545bc0dbf9e3d
authoryiyaoliu@chromium.org <yiyaoliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Jul 2014 23:09:37 +0000 (8 23:09 +0000)
committeryiyaoliu@chromium.org <yiyaoliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Jul 2014 23:09:37 +0000 (8 23:09 +0000)
treeed06d8ed60b879c0edfad1eca66a794e2b461728
parent81411c644a7377dd5393568e9afb443f1a919d66
Use the correct thread to access g_browser_process.

Since g_browser_process can only be accessed by ui thread, and GoogleUpdateSettings::GetCollectStatsConsent should be called by FILE thread, it doesn't make sense to put them in the same function, which is executed through posttask on FILE thread.

Schedules only GoogleUpdateSettings::GetCollectStatsConsent on FILE thread, and does everything else on IO thread in ShowForReal()

BUG=

Review URL: https://codereview.chromium.org/369933002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281865 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/views/session_crashed_bubble_view.cc
chrome/browser/ui/views/session_crashed_bubble_view.h