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

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: Created 9 years, 5 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 dfeb647ec91bc6d99a549b77acf6a6a09e78da24..099b2ae9d3f88179c78a33f574e034269019afbb 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
@@ -44,6 +44,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 +77,12 @@ class EnterpriseEnrollmentScreen
// Starts the Lockbox storage process.
void WriteInstallAttributesData();
+ // Kicks of the policy infrastructure to register with the service. Either
pastarmovj 2011/08/03 15:01:56 s/of/off/
Mattias Nissler (ping if slow) 2011/08/04 09:58:59 Done.
+ // |gaia_auth_token| or |oauth_token| should be provided, the other one should
+ // be empty.
+ void RegisterForDevicePolicy(const std::string& gaia_auth_token,
whywhat 2011/08/03 17:48:03 optional: maybe instead pass one string token and
Mattias Nissler (ping if slow) 2011/08/04 09:58:59 Done.
+ const std::string& oauth_token);
+
EnterpriseEnrollmentScreenActor* actor_;
bool is_showing_;
scoped_ptr<GaiaAuthFetcher> auth_fetcher_;

Powered by Google App Engine
This is Rietveld 408576698