| Index: chrome/browser/browser_process_impl.cc
|
| diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
|
| index 47f44d7685ab491c8a11d8e7f91d35299faa10ec..0bb579e88435136c3c298241a03a8cf8c6138020 100644
|
| --- a/chrome/browser/browser_process_impl.cc
|
| +++ b/chrome/browser/browser_process_impl.cc
|
| @@ -349,10 +349,6 @@ unsigned int BrowserProcessImpl::AddRefModule() {
|
| return module_ref_count_;
|
| }
|
|
|
| -static void ShutdownServiceWorkerContext(content::StoragePartition* partition) {
|
| - partition->GetServiceWorkerContext()->Terminate();
|
| -}
|
| -
|
| unsigned int BrowserProcessImpl::ReleaseModule() {
|
| DCHECK(CalledOnValidThread());
|
| DCHECK_NE(0u, module_ref_count_);
|
| @@ -360,14 +356,6 @@ unsigned int BrowserProcessImpl::ReleaseModule() {
|
| if (0 == module_ref_count_) {
|
| release_last_reference_callstack_ = base::debug::StackTrace();
|
|
|
| - // Stop service workers
|
| - ProfileManager* pm = profile_manager();
|
| - std::vector<Profile*> profiles(pm->GetLoadedProfiles());
|
| - for (size_t i = 0; i < profiles.size(); ++i) {
|
| - content::BrowserContext::ForEachStoragePartition(
|
| - profiles[i], base::Bind(ShutdownServiceWorkerContext));
|
| - }
|
| -
|
| #if defined(ENABLE_PRINTING)
|
| // Wait for the pending print jobs to finish. Don't do this later, since
|
| // this might cause a nested message loop to run, and we don't want pending
|
|
|