OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/automation/automation_provider_list.h" | 5 #include "chrome/browser/automation/automation_provider_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/automation/automation_provider.h" | 10 #include "chrome/browser/automation/automation_provider.h" |
11 #include "chrome/browser/browser_process.h" | |
12 | 11 |
13 AutomationProviderList* AutomationProviderList::instance_ = NULL; | 12 AutomationProviderList* AutomationProviderList::instance_ = NULL; |
14 | 13 |
15 AutomationProviderList::AutomationProviderList() { | 14 AutomationProviderList::AutomationProviderList() { |
16 } | 15 } |
17 | 16 |
18 AutomationProviderList::~AutomationProviderList() { | 17 AutomationProviderList::~AutomationProviderList() { |
19 iterator iter = automation_providers_.begin(); | 18 iterator iter = automation_providers_.begin(); |
20 while (iter != automation_providers_.end()) { | 19 while (iter != automation_providers_.end()) { |
21 (*iter)->Release(); | 20 (*iter)->Release(); |
(...skipping 21 matching lines...) Expand all Loading... |
43 return false; | 42 return false; |
44 } | 43 } |
45 | 44 |
46 AutomationProviderList* AutomationProviderList::GetInstance() { | 45 AutomationProviderList* AutomationProviderList::GetInstance() { |
47 if (!instance_) { | 46 if (!instance_) { |
48 instance_ = new AutomationProviderList; | 47 instance_ = new AutomationProviderList; |
49 } | 48 } |
50 DCHECK(NULL != instance_); | 49 DCHECK(NULL != instance_); |
51 return instance_; | 50 return instance_; |
52 } | 51 } |
OLD | NEW |