diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 22:24:46 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 22:24:46 +0000 |
commit | 562d71ef0d9bb578482240982a1f61a94f9f2e29 (patch) | |
tree | e89dc9552fbea182627ab4c6654962be6037df13 /chrome/browser/browser_process_sub_thread.cc | |
parent | f7e7babb6098aea4f6fb2b458a79d8f31c68b526 (diff) | |
download | chromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.zip chromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.tar.gz chromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.tar.bz2 |
Release ChromeURLRequestContextGetters' references on IO thread shutdown.
We register all ChromeURLRequestContextGetters that have a reference to a ChromeURLRequestContext with the IOThread. We unregister them when they go away. In IOThread::CleanUp(), we tell the known ChromeURLRequestContextGetters to release their references to ChromeURLRequestContexts.
BUG=58859
TEST=none
Review URL: http://codereview.chromium.org/3686003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_sub_thread.cc')
-rw-r--r-- | chrome/browser/browser_process_sub_thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser_process_sub_thread.cc b/chrome/browser/browser_process_sub_thread.cc index 39729d0..0ddbf3b 100644 --- a/chrome/browser/browser_process_sub_thread.cc +++ b/chrome/browser/browser_process_sub_thread.cc @@ -28,7 +28,7 @@ void BrowserProcessSubThread::Init() { notification_service_ = new NotificationService; } -void BrowserProcessSubThread::CleanUp() { +void BrowserProcessSubThread::CleanUpAfterMessageLoopDestruction() { delete notification_service_; notification_service_ = NULL; |