summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 21:13:39 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 21:13:39 +0000
commit9e549b587a1ae933c30e8d1d187832573ff1aa1d (patch)
treec0178384170bd1a6f2d7074304ea3c74f41ceee1 /chrome/browser/browser_process_impl.cc
parent909c7efcdaa54cca0bd7fc95e191d9087e7c2f96 (diff)
downloadchromium_src-9e549b587a1ae933c30e8d1d187832573ff1aa1d.zip
chromium_src-9e549b587a1ae933c30e8d1d187832573ff1aa1d.tar.gz
chromium_src-9e549b587a1ae933c30e8d1d187832573ff1aa1d.tar.bz2
Linux: get us to the point where we crash at browser->window()->Show()
Review URL: http://codereview.chromium.org/20098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r--chrome/browser/browser_process_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index cb8cd4b..42cea7f 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -315,7 +315,13 @@ void BrowserProcessImpl::CreateFileThread() {
scoped_ptr<base::Thread> thread(
new BrowserProcessSubThread(ChromeThread::FILE));
base::Thread::Options options;
+#if defined(OS_WIN)
+ // On Windows, the FILE thread needs to be have a UI message loop which pumps
+ // messages in such a way that Google Update can communicate back to us.
options.message_loop_type = MessageLoop::TYPE_UI;
+#else
+ options.message_loop_type = MessageLoop::TYPE_IO;
+#endif
if (!thread->StartWithOptions(options))
return;
file_thread_.swap(thread);