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/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/find_bar.h" | 39 #include "chrome/browser/find_bar.h" |
40 #include "chrome/browser/location_bar.h" | 40 #include "chrome/browser/location_bar.h" |
41 #include "chrome/browser/login_prompt.h" | 41 #include "chrome/browser/login_prompt.h" |
42 #include "chrome/browser/profile.h" | 42 #include "chrome/browser/profile.h" |
43 #include "chrome/browser/platform_util.h" | 43 #include "chrome/browser/platform_util.h" |
44 #include "chrome/browser/prefs/pref_service.h" | 44 #include "chrome/browser/prefs/pref_service.h" |
45 #include "chrome/browser/profile_manager.h" | 45 #include "chrome/browser/profile_manager.h" |
46 #include "chrome/browser/renderer_host/render_process_host.h" | 46 #include "chrome/browser/renderer_host/render_process_host.h" |
47 #include "chrome/browser/renderer_host/render_view_host.h" | 47 #include "chrome/browser/renderer_host/render_view_host.h" |
48 #include "chrome/browser/search_engines/template_url.h" | 48 #include "chrome/browser/search_engines/template_url.h" |
| 49 #include "chrome/browser/search_engines/template_url_model.h" |
49 #include "chrome/browser/tab_contents/infobar_delegate.h" | 50 #include "chrome/browser/tab_contents/infobar_delegate.h" |
50 #include "chrome/browser/tab_contents/interstitial_page.h" | 51 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 52 #include "chrome/browser/tab_contents/tab_contents.h" |
51 #include "chrome/browser/translate/translate_infobar_delegate.h" | 53 #include "chrome/browser/translate/translate_infobar_delegate.h" |
52 #include "chrome/common/chrome_constants.h" | 54 #include "chrome/common/chrome_constants.h" |
53 #include "chrome/common/chrome_paths.h" | 55 #include "chrome/common/chrome_paths.h" |
54 #include "chrome/common/chrome_switches.h" | 56 #include "chrome/common/chrome_switches.h" |
55 #include "chrome/common/net/url_request_context_getter.h" | 57 #include "chrome/common/net/url_request_context_getter.h" |
56 #include "chrome/common/notification_service.h" | 58 #include "chrome/common/notification_service.h" |
57 #include "chrome/common/url_constants.h" | 59 #include "chrome/common/url_constants.h" |
58 #include "chrome/test/automation/automation_messages.h" | 60 #include "chrome/test/automation/automation_messages.h" |
59 #include "net/base/cookie_store.h" | 61 #include "net/base/cookie_store.h" |
60 #include "net/url_request/url_request_context.h" | 62 #include "net/url_request/url_request_context.h" |
(...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3873 DCHECK(type == NotificationType::SESSION_END); | 3875 DCHECK(type == NotificationType::SESSION_END); |
3874 // OnBrowserRemoving does a ReleaseLater. When session end is received we exit | 3876 // OnBrowserRemoving does a ReleaseLater. When session end is received we exit |
3875 // before the task runs resulting in this object not being deleted. This | 3877 // before the task runs resulting in this object not being deleted. This |
3876 // Release balance out the Release scheduled by OnBrowserRemoving. | 3878 // Release balance out the Release scheduled by OnBrowserRemoving. |
3877 Release(); | 3879 Release(); |
3878 } | 3880 } |
3879 | 3881 |
3880 void TestingAutomationProvider::OnRemoveProvider() { | 3882 void TestingAutomationProvider::OnRemoveProvider() { |
3881 AutomationProviderList::GetInstance()->RemoveProvider(this); | 3883 AutomationProviderList::GetInstance()->RemoveProvider(this); |
3882 } | 3884 } |
OLD | NEW |