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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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) 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/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 23 matching lines...) Expand all
34 #include "chrome/browser/history/history_service.h" 34 #include "chrome/browser/history/history_service.h"
35 #include "chrome/browser/history/history_service_factory.h" 35 #include "chrome/browser/history/history_service_factory.h"
36 #include "chrome/browser/history/shortcuts_backend.h" 36 #include "chrome/browser/history/shortcuts_backend.h"
37 #include "chrome/browser/history/shortcuts_backend_factory.h" 37 #include "chrome/browser/history/shortcuts_backend_factory.h"
38 #include "chrome/browser/history/top_sites.h" 38 #include "chrome/browser/history/top_sites.h"
39 #include "chrome/browser/history/web_history_service_factory.h" 39 #include "chrome/browser/history/web_history_service_factory.h"
40 #include "chrome/browser/net/pref_proxy_config_tracker.h" 40 #include "chrome/browser/net/pref_proxy_config_tracker.h"
41 #include "chrome/browser/net/proxy_service_factory.h" 41 #include "chrome/browser/net/proxy_service_factory.h"
42 #include "chrome/browser/notifications/desktop_notification_service.h" 42 #include "chrome/browser/notifications/desktop_notification_service.h"
43 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 43 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
44 #include "chrome/browser/policy/policy_service.h"
45 #include "chrome/browser/policy/profile_policy_connector.h" 44 #include "chrome/browser/policy/profile_policy_connector.h"
46 #include "chrome/browser/policy/profile_policy_connector_factory.h" 45 #include "chrome/browser/policy/profile_policy_connector_factory.h"
47 #include "chrome/browser/prefs/browser_prefs.h" 46 #include "chrome/browser/prefs/browser_prefs.h"
48 #include "chrome/browser/prefs/pref_service_syncable.h" 47 #include "chrome/browser/prefs/pref_service_syncable.h"
49 #include "chrome/browser/prerender/prerender_manager.h" 48 #include "chrome/browser/prerender/prerender_manager.h"
50 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" 49 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
51 #include "chrome/browser/profiles/profile_manager.h" 50 #include "chrome/browser/profiles/profile_manager.h"
52 #include "chrome/browser/profiles/storage_partition_descriptor.h" 51 #include "chrome/browser/profiles/storage_partition_descriptor.h"
53 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" 52 #include "chrome/browser/search_engines/template_url_fetcher_factory.h"
54 #include "chrome/browser/webdata/web_data_service.h" 53 #include "chrome/browser/webdata/web_data_service.h"
55 #include "chrome/browser/webdata/web_data_service_factory.h" 54 #include "chrome/browser/webdata/web_data_service_factory.h"
56 #include "chrome/common/chrome_constants.h" 55 #include "chrome/common/chrome_constants.h"
57 #include "chrome/common/chrome_switches.h" 56 #include "chrome/common/chrome_switches.h"
58 #include "chrome/common/pref_names.h" 57 #include "chrome/common/pref_names.h"
59 #include "chrome/common/url_constants.h" 58 #include "chrome/common/url_constants.h"
60 #include "chrome/test/base/history_index_restore_observer.h" 59 #include "chrome/test/base/history_index_restore_observer.h"
61 #include "chrome/test/base/testing_pref_service_syncable.h" 60 #include "chrome/test/base/testing_pref_service_syncable.h"
62 #include "chrome/test/base/ui_test_utils.h" 61 #include "chrome/test/base/ui_test_utils.h"
63 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h" 62 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h"
63 #include "components/policy/core/common/policy_service.h"
64 #include "components/user_prefs/user_prefs.h" 64 #include "components/user_prefs/user_prefs.h"
65 #include "content/public/browser/browser_thread.h" 65 #include "content/public/browser/browser_thread.h"
66 #include "content/public/browser/notification_service.h" 66 #include "content/public/browser/notification_service.h"
67 #include "content/public/browser/render_process_host.h" 67 #include "content/public/browser/render_process_host.h"
68 #include "content/public/browser/storage_partition.h" 68 #include "content/public/browser/storage_partition.h"
69 #include "content/public/test/mock_resource_context.h" 69 #include "content/public/test/mock_resource_context.h"
70 #include "content/public/test/test_utils.h" 70 #include "content/public/test/test_utils.h"
71 #include "extensions/common/constants.h" 71 #include "extensions/common/constants.h"
72 #include "net/cookies/cookie_monster.h" 72 #include "net/cookies/cookie_monster.h"
73 #include "net/url_request/url_request_context.h" 73 #include "net/url_request/url_request_context.h"
74 #include "net/url_request/url_request_context_getter.h" 74 #include "net/url_request/url_request_context_getter.h"
75 #include "net/url_request/url_request_test_util.h" 75 #include "net/url_request/url_request_test_util.h"
76 #include "testing/gmock/include/gmock/gmock.h" 76 #include "testing/gmock/include/gmock/gmock.h"
77 77
78 #if defined(ENABLE_CONFIGURATION_POLICY) 78 #if defined(ENABLE_CONFIGURATION_POLICY)
79 #include "chrome/browser/policy/policy_service_impl.h"
80 #include "chrome/browser/policy/schema_registry_service.h" 79 #include "chrome/browser/policy/schema_registry_service.h"
81 #include "chrome/browser/policy/schema_registry_service_factory.h" 80 #include "chrome/browser/policy/schema_registry_service_factory.h"
82 #include "components/policy/core/common/configuration_policy_provider.h" 81 #include "components/policy/core/common/configuration_policy_provider.h"
82 #include "components/policy/core/common/policy_service_impl.h"
83 #include "components/policy/core/common/schema.h" 83 #include "components/policy/core/common/schema.h"
84 #else 84 #else
85 #include "chrome/browser/policy/policy_service_stub.h" 85 #include "components/policy/core/common/policy_service_stub.h"
86 #endif // defined(ENABLE_CONFIGURATION_POLICY) 86 #endif // defined(ENABLE_CONFIGURATION_POLICY)
87 87
88 #if defined(ENABLE_MANAGED_USERS) 88 #if defined(ENABLE_MANAGED_USERS)
89 #include "chrome/browser/managed_mode/managed_user_settings_service.h" 89 #include "chrome/browser/managed_mode/managed_user_settings_service.h"
90 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h" 90 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h"
91 #endif 91 #endif
92 92
93 using base::Time; 93 using base::Time;
94 using content::BrowserThread; 94 using content::BrowserThread;
95 using content::DownloadManagerDelegate; 95 using content::DownloadManagerDelegate;
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 path_, 929 path_,
930 delegate_, 930 delegate_,
931 extension_policy_, 931 extension_policy_,
932 pref_service_.Pass(), 932 pref_service_.Pass(),
933 incognito_, 933 incognito_,
934 guest_session_, 934 guest_session_,
935 managed_user_id_, 935 managed_user_id_,
936 policy_service_.Pass(), 936 policy_service_.Pass(),
937 testing_factories_)); 937 testing_factories_));
938 } 938 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | chrome/tools/build/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698