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

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

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix duplicate include Created 9 years, 8 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.h
diff --git a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
index 6dd74fea9e6e1bffd993d16e0c675c7254ea5022..08c9d71bd5a1b3c01a535fe4b990bda1073cbb68 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
@@ -12,6 +12,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/login/enterprise_enrollment_view.h"
#include "chrome/browser/chromeos/login/view_screen.h"
+#include "chrome/browser/policy/cloud_policy_subsystem.h"
#include "chrome/common/net/gaia/gaia_auth_fetcher.h"
namespace chromeos {
@@ -37,7 +38,8 @@ class EnterpriseEnrollmentController {
class EnterpriseEnrollmentScreen
: public ViewScreen<EnterpriseEnrollmentView>,
public EnterpriseEnrollmentController,
- public GaiaAuthConsumer {
+ public GaiaAuthConsumer,
+ public policy::CloudPolicySubsystem::Observer {
public:
explicit EnterpriseEnrollmentScreen(WizardScreenDelegate* delegate);
virtual ~EnterpriseEnrollmentScreen();
@@ -61,6 +63,10 @@ class EnterpriseEnrollmentScreen
const std::string& service,
const GoogleServiceAuthError& error) OVERRIDE;
+ // CloudPolicySubsystem::Observer implementation:
+ virtual void OnPolicyStateChanged(
+ policy::CloudPolicySubsystem::PolicySubsystemState state,
+ policy::CloudPolicySubsystem::ErrorDetails error_details) OVERRIDE;
protected:
// Overriden from ViewScreen:
@@ -69,8 +75,13 @@ class EnterpriseEnrollmentScreen
private:
void HandleAuthError(const GoogleServiceAuthError& error);
+ // Gets the machine identifier to report to the server.
+ static std::string GetMachineId();
+
scoped_ptr<GaiaAuthFetcher> auth_fetcher_;
+ std::string user_;
std::string captcha_token_;
+ scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> registrar_;
DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreen);
};

Powered by Google App Engine
This is Rietveld 408576698