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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
6 | 6 |
7 #include "app/message_box_flags.h" | 7 #include "app/message_box_flags.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/bookmarks/bookmark_storage.h" | 23 #include "chrome/browser/bookmarks/bookmark_storage.h" |
24 #include "chrome/browser/blocked_popup_container.h" | 24 #include "chrome/browser/blocked_popup_container.h" |
25 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/browser_window.h" | 26 #include "chrome/browser/browser_window.h" |
27 #include "chrome/browser/debugger/devtools_manager.h" | 27 #include "chrome/browser/debugger/devtools_manager.h" |
28 #include "chrome/browser/download/download_prefs.h" | 28 #include "chrome/browser/download/download_prefs.h" |
29 #include "chrome/browser/download/download_shelf.h" | 29 #include "chrome/browser/download/download_shelf.h" |
30 #include "chrome/browser/find_bar.h" | 30 #include "chrome/browser/find_bar.h" |
31 #include "chrome/browser/location_bar.h" | 31 #include "chrome/browser/location_bar.h" |
32 #include "chrome/browser/login_prompt.h" | 32 #include "chrome/browser/login_prompt.h" |
| 33 #include "chrome/browser/profile.h" |
33 #include "chrome/browser/platform_util.h" | 34 #include "chrome/browser/platform_util.h" |
34 #include "chrome/browser/prefs/pref_service.h" | 35 #include "chrome/browser/prefs/pref_service.h" |
35 #include "chrome/browser/renderer_host/render_process_host.h" | 36 #include "chrome/browser/renderer_host/render_process_host.h" |
36 #include "chrome/browser/renderer_host/render_view_host.h" | 37 #include "chrome/browser/renderer_host/render_view_host.h" |
37 #include "chrome/browser/tab_contents/infobar_delegate.h" | 38 #include "chrome/browser/tab_contents/infobar_delegate.h" |
38 #include "chrome/browser/tab_contents/interstitial_page.h" | 39 #include "chrome/browser/tab_contents/interstitial_page.h" |
39 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
40 #include "chrome/common/net/url_request_context_getter.h" | 41 #include "chrome/common/net/url_request_context_getter.h" |
41 #include "chrome/common/notification_service.h" | 42 #include "chrome/common/notification_service.h" |
42 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
(...skipping 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 DCHECK(type == NotificationType::SESSION_END); | 1964 DCHECK(type == NotificationType::SESSION_END); |
1964 // OnBrowserRemoving does a ReleaseLater. When session end is received we exit | 1965 // OnBrowserRemoving does a ReleaseLater. When session end is received we exit |
1965 // before the task runs resulting in this object not being deleted. This | 1966 // before the task runs resulting in this object not being deleted. This |
1966 // Release balance out the Release scheduled by OnBrowserRemoving. | 1967 // Release balance out the Release scheduled by OnBrowserRemoving. |
1967 Release(); | 1968 Release(); |
1968 } | 1969 } |
1969 | 1970 |
1970 void TestingAutomationProvider::OnRemoveProvider() { | 1971 void TestingAutomationProvider::OnRemoveProvider() { |
1971 AutomationProviderList::GetInstance()->RemoveProvider(this); | 1972 AutomationProviderList::GetInstance()->RemoveProvider(this); |
1972 } | 1973 } |
OLD | NEW |