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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebae Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 6a28c65fe78c7ead873ac897900a16fe8fff5885..4ca2d42d9d40b1095b5b08d182a88b85752de468 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -208,15 +208,13 @@ TestingProfile::TestingProfile(
const FilePath& path,
Delegate* delegate,
scoped_refptr<ExtensionSpecialStoragePolicy> extension_policy,
- scoped_ptr<PrefService> prefs,
- scoped_ptr<policy::UserCloudPolicyManager> user_cloud_policy_manager)
+ scoped_ptr<PrefService> prefs)
: start_time_(Time::Now()),
prefs_(prefs.release()),
testing_prefs_(NULL),
incognito_(false),
last_session_exited_cleanly_(true),
extension_special_storage_policy_(extension_policy),
- user_cloud_policy_manager_(user_cloud_policy_manager.release()),
profile_path_(path),
profile_dependency_manager_(ProfileDependencyManager::GetInstance()),
delegate_(delegate) {
@@ -304,11 +302,6 @@ TestingProfile::~TestingProfile() {
DestroyTopSites();
-#if defined(ENABLE_CONFIGURATION_POLICY)
- if (user_cloud_policy_manager_)
- user_cloud_policy_manager_->Shutdown();
-#endif
-
if (pref_proxy_config_tracker_.get())
pref_proxy_config_tracker_->DetachFromPrefService();
}
@@ -545,10 +538,6 @@ net::CookieMonster* TestingProfile::GetCookieMonster() {
GetCookieMonster();
}
-policy::UserCloudPolicyManager* TestingProfile::GetUserCloudPolicyManager() {
- return user_cloud_policy_manager_.get();
-}
-
policy::ManagedModePolicyProvider*
TestingProfile::GetManagedModePolicyProvider() {
return NULL;
@@ -816,11 +805,6 @@ void TestingProfile::Builder::SetPrefService(scoped_ptr<PrefService> prefs) {
pref_service_ = prefs.Pass();
}
-void TestingProfile::Builder::SetUserCloudPolicyManager(
- scoped_ptr<policy::UserCloudPolicyManager> manager) {
- user_cloud_policy_manager_ = manager.Pass();
-}
-
scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
DCHECK(!build_called_);
build_called_ = true;
@@ -828,6 +812,5 @@ scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
path_,
delegate_,
extension_policy_,
- pref_service_.Pass(),
- user_cloud_policy_manager_.Pass()));
+ pref_service_.Pass()));
}
« chrome/browser/profiles/profile_impl.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698