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

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

Issue 434613003: Remove all the browser side extensions code from Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/prefs/testing_pref_store.h" 12 #include "base/prefs/testing_pref_store.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 15 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" 17 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
18 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h" 18 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/chrome_notification_types.h" 20 #include "chrome/browser/chrome_notification_types.h"
21 #include "chrome/browser/content_settings/host_content_settings_map.h" 21 #include "chrome/browser/content_settings/host_content_settings_map.h"
22 #include "chrome/browser/extensions/extension_system_factory.h"
23 #include "chrome/browser/extensions/test_extension_system.h"
24 #include "chrome/browser/favicon/chrome_favicon_client_factory.h" 22 #include "chrome/browser/favicon/chrome_favicon_client_factory.h"
25 #include "chrome/browser/favicon/favicon_service.h" 23 #include "chrome/browser/favicon/favicon_service.h"
26 #include "chrome/browser/favicon/favicon_service_factory.h" 24 #include "chrome/browser/favicon/favicon_service_factory.h"
27 #include "chrome/browser/history/chrome_history_client.h" 25 #include "chrome/browser/history/chrome_history_client.h"
28 #include "chrome/browser/history/chrome_history_client_factory.h" 26 #include "chrome/browser/history/chrome_history_client_factory.h"
29 #include "chrome/browser/history/history_backend.h" 27 #include "chrome/browser/history/history_backend.h"
30 #include "chrome/browser/history/history_db_task.h" 28 #include "chrome/browser/history/history_db_task.h"
31 #include "chrome/browser/history/history_service.h" 29 #include "chrome/browser/history/history_service.h"
32 #include "chrome/browser/history/history_service_factory.h" 30 #include "chrome/browser/history/history_service_factory.h"
33 #include "chrome/browser/history/top_sites.h" 31 #include "chrome/browser/history/top_sites.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "chrome/browser/policy/schema_registry_service_factory.h" 75 #include "chrome/browser/policy/schema_registry_service_factory.h"
78 #include "components/policy/core/common/configuration_policy_provider.h" 76 #include "components/policy/core/common/configuration_policy_provider.h"
79 #include "components/policy/core/common/policy_service_impl.h" 77 #include "components/policy/core/common/policy_service_impl.h"
80 #include "components/policy/core/common/schema.h" 78 #include "components/policy/core/common/schema.h"
81 #else 79 #else
82 #include "components/policy/core/common/policy_service_stub.h" 80 #include "components/policy/core/common/policy_service_stub.h"
83 #endif // defined(ENABLE_CONFIGURATION_POLICY) 81 #endif // defined(ENABLE_CONFIGURATION_POLICY)
84 82
85 #if defined(ENABLE_EXTENSIONS) 83 #if defined(ENABLE_EXTENSIONS)
86 #include "chrome/browser/extensions/extension_special_storage_policy.h" 84 #include "chrome/browser/extensions/extension_special_storage_policy.h"
85 #include "chrome/browser/extensions/extension_system_factory.h"
86 #include "chrome/browser/extensions/test_extension_system.h"
87 #include "chrome/browser/guest_view/guest_view_manager.h" 87 #include "chrome/browser/guest_view/guest_view_manager.h"
88 #include "extensions/browser/extension_system.h" 88 #include "extensions/browser/extension_system.h"
89 #endif 89 #endif
90 90
91 #if defined(OS_ANDROID) 91 #if defined(OS_ANDROID)
92 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" 92 #include "chrome/browser/signin/android_profile_oauth2_token_service.h"
93 #endif 93 #endif
94 94
95 #if defined(ENABLE_MANAGED_USERS) 95 #if defined(ENABLE_MANAGED_USERS)
96 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" 96 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 if (!base::PathExists(profile_path_)) 348 if (!base::PathExists(profile_path_))
349 base::CreateDirectory(profile_path_); 349 base::CreateDirectory(profile_path_);
350 350
351 // TODO(joaodasilva): remove this once this PKS isn't created in ProfileImpl 351 // TODO(joaodasilva): remove this once this PKS isn't created in ProfileImpl
352 // anymore, after converting the PrefService to a PKS. Until then it must 352 // anymore, after converting the PrefService to a PKS. Until then it must
353 // be associated with a TestingProfile too. 353 // be associated with a TestingProfile too.
354 if (!IsOffTheRecord()) 354 if (!IsOffTheRecord())
355 CreateProfilePolicyConnector(); 355 CreateProfilePolicyConnector();
356 356
357 #if defined(ENABLE_EXTENSIONS)
357 extensions::ExtensionSystemFactory::GetInstance()->SetTestingFactory( 358 extensions::ExtensionSystemFactory::GetInstance()->SetTestingFactory(
358 this, extensions::TestExtensionSystem::Build); 359 this, extensions::TestExtensionSystem::Build);
360 #endif
359 361
360 // If no original profile was specified for this profile: register preferences 362 // If no original profile was specified for this profile: register preferences
361 // even if this is an incognito profile - this allows tests to create a 363 // even if this is an incognito profile - this allows tests to create a
362 // standalone incognito profile while still having prefs registered. 364 // standalone incognito profile while still having prefs registered.
363 if (!IsOffTheRecord() || !original_profile_) { 365 if (!IsOffTheRecord() || !original_profile_) {
364 user_prefs::PrefRegistrySyncable* pref_registry = 366 user_prefs::PrefRegistrySyncable* pref_registry =
365 static_cast<user_prefs::PrefRegistrySyncable*>( 367 static_cast<user_prefs::PrefRegistrySyncable*>(
366 prefs_->DeprecatedGetPrefRegistry()); 368 prefs_->DeprecatedGetPrefRegistry());
367 browser_context_dependency_manager_-> 369 browser_context_dependency_manager_->
368 RegisterProfilePrefsForServices(this, pref_registry); 370 RegisterProfilePrefsForServices(this, pref_registry);
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 #if defined(ENABLE_EXTENSIONS) 982 #if defined(ENABLE_EXTENSIONS)
981 extension_policy_, 983 extension_policy_,
982 #endif 984 #endif
983 pref_service_.Pass(), 985 pref_service_.Pass(),
984 incognito_, 986 incognito_,
985 guest_session_, 987 guest_session_,
986 supervised_user_id_, 988 supervised_user_id_,
987 policy_service_.Pass(), 989 policy_service_.Pass(),
988 testing_factories_)); 990 testing_factories_));
989 } 991 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698