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

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

Issue 7562008: Add new version of enrollment screen supporting OAuth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix nit. Created 9 years, 4 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/theme/theme_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 dfeb647ec91bc6d99a549b77acf6a6a09e78da24..a670904739ef6ce0160ca59d33057d62e56a3290 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
@@ -15,6 +15,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h"
#include "chrome/browser/chromeos/login/wizard_screen.h"
+#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/cloud_policy_subsystem.h"
#include "chrome/common/net/gaia/gaia_auth_fetcher.h"
@@ -44,6 +45,8 @@ class EnterpriseEnrollmentScreen
const std::string& password,
const std::string& captcha,
const std::string& access_code) OVERRIDE;
+ virtual void OnOAuthTokenAvailable(const std::string& user,
+ const std::string& token) OVERRIDE;
virtual void OnAuthCancelled() OVERRIDE;
virtual void OnConfirmationClosed() OVERRIDE;
virtual bool GetInitialUser(std::string* user) OVERRIDE;
@@ -75,6 +78,11 @@ class EnterpriseEnrollmentScreen
// Starts the Lockbox storage process.
void WriteInstallAttributesData();
+ // Kicks off the policy infrastructure to register with the service.
+ void RegisterForDevicePolicy(
+ const std::string& token,
+ policy::BrowserPolicyConnector::TokenType token_type);
+
EnterpriseEnrollmentScreenActor* actor_;
bool is_showing_;
scoped_ptr<GaiaAuthFetcher> auth_fetcher_;
« no previous file with comments | « chrome/app/theme/theme_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