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/testing_automation_provider.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/json/json_writer.h" 17 #include "base/json/json_writer.h"
18 #include "base/json/string_escape.h" 18 #include "base/json/string_escape.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/prefs/pref_service.h"
20 #include "base/process.h" 21 #include "base/process.h"
21 #include "base/process_util.h" 22 #include "base/process_util.h"
22 #include "base/sequenced_task_runner.h" 23 #include "base/sequenced_task_runner.h"
23 #include "base/stringprintf.h" 24 #include "base/stringprintf.h"
24 #include "base/threading/thread_restrictions.h" 25 #include "base/threading/thread_restrictions.h"
25 #include "base/time.h" 26 #include "base/time.h"
26 #include "base/utf_string_conversions.h" 27 #include "base/utf_string_conversions.h"
27 #include "chrome/app/chrome_command_ids.h" 28 #include "chrome/app/chrome_command_ids.h"
28 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" 29 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
29 #include "chrome/browser/api/infobars/infobar_service.h" 30 #include "chrome/browser/api/infobars/infobar_service.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "chrome/browser/lifetime/application_lifetime.h" 68 #include "chrome/browser/lifetime/application_lifetime.h"
68 #include "chrome/browser/notifications/balloon.h" 69 #include "chrome/browser/notifications/balloon.h"
69 #include "chrome/browser/notifications/balloon_collection.h" 70 #include "chrome/browser/notifications/balloon_collection.h"
70 #include "chrome/browser/notifications/balloon_notification_ui_manager.h" 71 #include "chrome/browser/notifications/balloon_notification_ui_manager.h"
71 #include "chrome/browser/notifications/notification.h" 72 #include "chrome/browser/notifications/notification.h"
72 #include "chrome/browser/password_manager/password_store.h" 73 #include "chrome/browser/password_manager/password_store.h"
73 #include "chrome/browser/password_manager/password_store_change.h" 74 #include "chrome/browser/password_manager/password_store_change.h"
74 #include "chrome/browser/password_manager/password_store_factory.h" 75 #include "chrome/browser/password_manager/password_store_factory.h"
75 #include "chrome/browser/platform_util.h" 76 #include "chrome/browser/platform_util.h"
76 #include "chrome/browser/plugins/plugin_prefs.h" 77 #include "chrome/browser/plugins/plugin_prefs.h"
77 #include "chrome/browser/prefs/pref_service.h"
78 #include "chrome/browser/printing/print_preview_dialog_controller.h" 78 #include "chrome/browser/printing/print_preview_dialog_controller.h"
79 #include "chrome/browser/profiles/profile.h" 79 #include "chrome/browser/profiles/profile.h"
80 #include "chrome/browser/profiles/profile_info_cache.h" 80 #include "chrome/browser/profiles/profile_info_cache.h"
81 #include "chrome/browser/profiles/profile_manager.h" 81 #include "chrome/browser/profiles/profile_manager.h"
82 #include "chrome/browser/search_engines/template_url.h" 82 #include "chrome/browser/search_engines/template_url.h"
83 #include "chrome/browser/search_engines/template_url_service.h" 83 #include "chrome/browser/search_engines/template_url_service.h"
84 #include "chrome/browser/search_engines/template_url_service_factory.h" 84 #include "chrome/browser/search_engines/template_url_service_factory.h"
85 #include "chrome/browser/sessions/session_service_factory.h" 85 #include "chrome/browser/sessions/session_service_factory.h"
86 #include "chrome/browser/sessions/session_tab_helper.h" 86 #include "chrome/browser/sessions/session_tab_helper.h"
87 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" 87 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h"
(...skipping 5878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5966 if (g_browser_process) 5966 if (g_browser_process)
5967 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 5967 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
5968 } 5968 }
5969 5969
5970 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 5970 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
5971 WebContents* tab) { 5971 WebContents* tab) {
5972 TabStripModel* tab_strip = browser->tab_strip_model(); 5972 TabStripModel* tab_strip = browser->tab_strip_model();
5973 if (tab_strip->GetActiveWebContents() != tab) 5973 if (tab_strip->GetActiveWebContents() != tab)
5974 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); 5974 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true);
5975 } 5975 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/testing_automation_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698