summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorpaul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 01:27:01 +0000
committerpaul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 01:27:01 +0000
commit640579651b4a52f58d96db3a693274e3db47efda (patch)
tree169fb159248ba6d10d8393183ec0e912c269558a /chrome/browser/browser_main.cc
parentefd73788611d6060d46c0802d7de497539e9814c (diff)
downloadchromium_src-640579651b4a52f58d96db3a693274e3db47efda.zip
chromium_src-640579651b4a52f58d96db3a693274e3db47efda.tar.gz
chromium_src-640579651b4a52f58d96db3a693274e3db47efda.tar.bz2
Add the UI thread to the list of ChromeThreads.
BUG=none TEST=none Review URL: http://codereview.chromium.org/171088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index c111478..b1fddf6 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -30,6 +30,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_process_impl.h"
#include "chrome/browser/browser_shutdown.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "chrome/browser/extensions/extension_protocols.h"
#include "chrome/browser/first_run.h"
@@ -322,6 +323,9 @@ int BrowserMain(const MainFunctionParams& parameters) {
main_message_loop.set_thread_name(thread_name);
bool already_running = Upgrade::IsBrowserAlreadyRunning();
+ // Register the main thread by instantiating it, but don't call any methods.
+ ChromeThread main_thread;
+
FilePath user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
ProcessSingleton process_singleton(user_data_dir);