OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "chrome/browser/instant/instant_controller.h" | 64 #include "chrome/browser/instant/instant_controller.h" |
65 #include "chrome/browser/lifetime/application_lifetime.h" | 65 #include "chrome/browser/lifetime/application_lifetime.h" |
66 #include "chrome/browser/notifications/balloon.h" | 66 #include "chrome/browser/notifications/balloon.h" |
67 #include "chrome/browser/notifications/balloon_collection.h" | 67 #include "chrome/browser/notifications/balloon_collection.h" |
68 #include "chrome/browser/notifications/notification.h" | 68 #include "chrome/browser/notifications/notification.h" |
69 #include "chrome/browser/notifications/notification_ui_manager.h" | 69 #include "chrome/browser/notifications/notification_ui_manager.h" |
70 #include "chrome/browser/password_manager/password_store.h" | 70 #include "chrome/browser/password_manager/password_store.h" |
71 #include "chrome/browser/password_manager/password_store_change.h" | 71 #include "chrome/browser/password_manager/password_store_change.h" |
72 #include "chrome/browser/password_manager/password_store_factory.h" | 72 #include "chrome/browser/password_manager/password_store_factory.h" |
73 #include "chrome/browser/platform_util.h" | 73 #include "chrome/browser/platform_util.h" |
74 #include "chrome/browser/plugin_prefs.h" | 74 #include "chrome/browser/plugins/plugin_prefs.h" |
75 #include "chrome/browser/prefs/pref_service.h" | 75 #include "chrome/browser/prefs/pref_service.h" |
76 #include "chrome/browser/printing/print_preview_tab_controller.h" | 76 #include "chrome/browser/printing/print_preview_tab_controller.h" |
77 #include "chrome/browser/profiles/profile.h" | 77 #include "chrome/browser/profiles/profile.h" |
78 #include "chrome/browser/profiles/profile_info_cache.h" | 78 #include "chrome/browser/profiles/profile_info_cache.h" |
79 #include "chrome/browser/profiles/profile_manager.h" | 79 #include "chrome/browser/profiles/profile_manager.h" |
80 #include "chrome/browser/protector/protector_service.h" | 80 #include "chrome/browser/protector/protector_service.h" |
81 #include "chrome/browser/protector/protector_service_factory.h" | 81 #include "chrome/browser/protector/protector_service_factory.h" |
82 #include "chrome/browser/protector/protector_utils.h" | 82 #include "chrome/browser/protector/protector_utils.h" |
83 #include "chrome/browser/search_engines/template_url.h" | 83 #include "chrome/browser/search_engines/template_url.h" |
84 #include "chrome/browser/search_engines/template_url_service.h" | 84 #include "chrome/browser/search_engines/template_url_service.h" |
(...skipping 6259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6344 void TestingAutomationProvider::OnRemoveProvider() { | 6344 void TestingAutomationProvider::OnRemoveProvider() { |
6345 if (g_browser_process) | 6345 if (g_browser_process) |
6346 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6346 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
6347 } | 6347 } |
6348 | 6348 |
6349 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6349 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
6350 WebContents* tab) { | 6350 WebContents* tab) { |
6351 if (chrome::GetActiveWebContents(browser) != tab) | 6351 if (chrome::GetActiveWebContents(browser) != tab) |
6352 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 6352 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
6353 } | 6353 } |
OLD | NEW |