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

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: Fix DeviceCloudPolicyManagerChromeOSTest.EnrolledDevice failure. 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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b83e1646bfa0f7d427edec3ce62b27999b03642b 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -37,7 +37,6 @@
#include "chrome/browser/net/proxy_service_factory.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/notifications/desktop_notification_service_factory.h"
-#include "chrome/browser/policy/user_cloud_policy_manager.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
@@ -208,15 +207,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 +301,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 +537,6 @@ net::CookieMonster* TestingProfile::GetCookieMonster() {
GetCookieMonster();
}
-policy::UserCloudPolicyManager* TestingProfile::GetUserCloudPolicyManager() {
- return user_cloud_policy_manager_.get();
-}
-
policy::ManagedModePolicyProvider*
TestingProfile::GetManagedModePolicyProvider() {
return NULL;
@@ -816,11 +804,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 +811,5 @@ scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
path_,
delegate_,
extension_policy_,
- pref_service_.Pass(),
- user_cloud_policy_manager_.Pass()));
+ pref_service_.Pass()));
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698