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

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 unit tests... 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/enterprise_enrollment_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c987d598ab68e271b4a2a82fe5dadb36cd90b5d1 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:
@@ -70,7 +76,9 @@ class EnterpriseEnrollmentScreen
void HandleAuthError(const GoogleServiceAuthError& error);
scoped_ptr<GaiaAuthFetcher> auth_fetcher_;
+ std::string user_;
std::string captcha_token_;
+ scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> registrar_;
DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreen);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/enterprise_enrollment_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698