Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/automation/automation_provider_list.cc

Issue 5512009: Remove unneeded browser_process.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux build Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698