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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 1892873002: Add CheckAndroidManagement to ARC sign-in flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@check_android_management
Patch Set: Put CheckAndroidManagement before LSO. Created 4 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/arc/arc_auth_service.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h
index cd20eaf7598f4c4a94a6920282fa820373ce1faf..aa5d014ed153256e2b97792a1c922dab9007cf37 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -34,6 +34,10 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
+namespace policy {
+class AndroidManagementClient;
+}
+
namespace arc {
// This class proxies the request from the client to fetch an auth code from
@@ -159,6 +163,9 @@ class ArcAuthService : public ArcService,
void OnOptInPreferenceChanged();
void StartUI();
void OnPrepareContextFailed();
+ void StartAndroidManagementClient();
+ void CheckAndroidManagement();
+ void OnAndroidManagementChecked(bool success);
// Unowned pointer. Keeps current profile.
Profile* profile_ = nullptr;
@@ -180,6 +187,9 @@ class ArcAuthService : public ArcService,
bool context_prepared_ = false;
UIPage ui_page_ = UIPage::NO_PAGE;
base::string16 ui_page_status_;
+ std::string auth_token_;
bartfab (slow) 2016/04/18 15:06:15 Nit: #include <string>
Polina Bondarenko 2016/04/20 13:37:45 Done.
+
+ scoped_ptr<policy::AndroidManagementClient> android_management_client_;
bartfab (slow) 2016/04/18 15:06:15 Nit: Use std::unique_ptr instead.
Polina Bondarenko 2016/05/02 12:22:06 Done.
DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
};

Powered by Google App Engine
This is Rietveld 408576698