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

Unified Diff: chrome/browser/chromeos/login/enterprise_enrollment_screen.cc

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by mnissler. Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/enterprise_enrollment_screen.cc
diff --git a/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc b/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc
index 102554ef2a0784f022c4ae200f5622ed69c121e9..3bcf52fafaa4b51a8d5f780915426dd00c6e8b0e 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc
@@ -62,7 +62,7 @@ void EnterpriseEnrollmentScreen::Authenticate(const std::string& user,
void EnterpriseEnrollmentScreen::CancelEnrollment() {
auth_fetcher_.reset();
registrar_.reset();
- g_browser_process->browser_policy_connector()->StopAutoRetry();
+ g_browser_process->browser_policy_connector()->DeviceStopAutoRetry();
ScreenObserver* observer = delegate()->GetObserver();
observer->OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_CANCELLED);
}
@@ -121,7 +121,7 @@ void EnterpriseEnrollmentScreen::OnIssueAuthTokenSuccess(
policy::BrowserPolicyConnector* connector =
g_browser_process->browser_policy_connector();
- if (!connector->cloud_policy_subsystem()) {
+ if (!connector->device_cloud_policy_subsystem()) {
NOTREACHED() << "Cloud policy subsystem not initialized.";
if (view())
view()->ShowFatalEnrollmentError();
@@ -130,11 +130,11 @@ void EnterpriseEnrollmentScreen::OnIssueAuthTokenSuccess(
connector->ScheduleServiceInitialization(0);
registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar(
- connector->cloud_policy_subsystem(), this));
+ connector->device_cloud_policy_subsystem(), this));
// Push the credentials to the policy infrastructure. It'll start enrollment
// and notify us of progress through CloudPolicySubsystem::Observer.
- connector->SetCredentials(user_, auth_token);
+ connector->SetDeviceCredentials(user_, auth_token);
}
void EnterpriseEnrollmentScreen::OnIssueAuthTokenFailure(
@@ -184,7 +184,7 @@ void EnterpriseEnrollmentScreen::OnPolicyStateChanged(
// Stop the policy infrastructure.
registrar_.reset();
- g_browser_process->browser_policy_connector()->StopAutoRetry();
+ g_browser_process->browser_policy_connector()->DeviceStopAutoRetry();
}
EnterpriseEnrollmentView* EnterpriseEnrollmentScreen::AllocateView() {
@@ -236,7 +236,7 @@ void EnterpriseEnrollmentScreen::WriteInstallAttributesData() {
// Proceed with policy fetch.
policy::BrowserPolicyConnector* connector =
g_browser_process->browser_policy_connector();
- connector->FetchPolicy();
+ connector->FetchDevicePolicy();
return;
}
case policy::EnterpriseInstallAttributes::LOCK_NOT_READY: {
« no previous file with comments | « chrome/browser/chromeos/login/base_login_display_host.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698