| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/service/service_process_control_manager.h" | 5 #include "chrome/browser/service/service_process_control_manager.h" |
| 6 | 6 |
| 7 #include "base/singleton.h" | 7 #include "base/singleton.h" |
| 8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
| 9 #include "chrome/browser/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/service/service_process_control.h" | 11 #include "chrome/browser/service/service_process_control.h" |
| 12 | 12 |
| 13 ServiceProcessControlManager::ServiceProcessControlManager() { | 13 ServiceProcessControlManager::ServiceProcessControlManager() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 ServiceProcessControlManager::~ServiceProcessControlManager() { | 16 ServiceProcessControlManager::~ServiceProcessControlManager() { |
| 17 DCHECK(process_control_list_.empty()); | 17 DCHECK(process_control_list_.empty()); |
| 18 } | 18 } |
| 19 | 19 |
| 20 ServiceProcessControl* ServiceProcessControlManager::GetProcessControl( | 20 ServiceProcessControl* ServiceProcessControlManager::GetProcessControl( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 void ServiceProcessControlManager::Shutdown() { | 38 void ServiceProcessControlManager::Shutdown() { |
| 39 // When we shutdown the manager we just clear the list and don't actually | 39 // When we shutdown the manager we just clear the list and don't actually |
| 40 // shutdown the service process. | 40 // shutdown the service process. |
| 41 STLDeleteElements(&process_control_list_); | 41 STLDeleteElements(&process_control_list_); |
| 42 } | 42 } |
| 43 | 43 |
| 44 // static | 44 // static |
| 45 ServiceProcessControlManager* ServiceProcessControlManager::instance() { | 45 ServiceProcessControlManager* ServiceProcessControlManager::instance() { |
| 46 return Singleton<ServiceProcessControlManager>::get(); | 46 return Singleton<ServiceProcessControlManager>::get(); |
| 47 } | 47 } |
| OLD | NEW |