diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 15:56:41 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 15:56:41 +0000 |
commit | 2e5b60a280076017d700e56a5cb81ec62149a9bc (patch) | |
tree | e1f212d0f3cbdb7c04f4fd8fc67e1fcd26c350da /content/browser/browser_process_sub_thread.cc | |
parent | e04be707101e60bb5512c69a64ce5b64a1c4eeba (diff) | |
download | chromium_src-2e5b60a280076017d700e56a5cb81ec62149a9bc.zip chromium_src-2e5b60a280076017d700e56a5cb81ec62149a9bc.tar.gz chromium_src-2e5b60a280076017d700e56a5cb81ec62149a9bc.tar.bz2 |
Have content/ create and destroy its own threads. (Re-land)
Change embedding API and embedders to allow for this.
Push inheritance of base::Thread down to content::BrowserThreadImpl so
that content::BrowserThread is just a namespace for API functions.
This change temporarily disables chrome_frame_net_tests as agreed by the CF lead, see bug 105435.
TBR=ben@chromium.org (IWYU change only)
BUG=98716,104578,105435
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111695
Reverted (problems on official bot): r111698
Review URL: http://codereview.chromium.org/8477004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_process_sub_thread.cc')
-rw-r--r-- | content/browser/browser_process_sub_thread.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/browser/browser_process_sub_thread.cc b/content/browser/browser_process_sub_thread.cc index 31c129e..7c77d7e 100644 --- a/content/browser/browser_process_sub_thread.cc +++ b/content/browser/browser_process_sub_thread.cc @@ -17,8 +17,6 @@ BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier) : BrowserThreadImpl(identifier) {} BrowserProcessSubThread::~BrowserProcessSubThread() { - // We cannot rely on our base class to stop the thread since we want our - // CleanUp function to run. Stop(); } @@ -29,9 +27,13 @@ void BrowserProcessSubThread::Init() { #endif notification_service_ = new NotificationServiceImpl; + + BrowserThreadImpl::Init(); } void BrowserProcessSubThread::CleanUp() { + BrowserThreadImpl::CleanUp(); + delete notification_service_; notification_service_ = NULL; |