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

Unified Diff: chrome/browser/chromeos/policy/device_local_account.cc

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Rebase Created 4 years, 2 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/browser/chromeos/policy/device_local_account.h ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_local_account.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account.cc b/chrome/browser/chromeos/policy/device_local_account.cc
index b5dc8f4d270174fabf96b310b0f7f0eba9e53658..92e791fee4fae33f4c069e29f3f7687ed487ffef 100644
--- a/chrome/browser/chromeos/policy/device_local_account.cc
+++ b/chrome/browser/chromeos/policy/device_local_account.cc
@@ -28,6 +28,7 @@ namespace {
const char kPublicAccountDomainPrefix[] = "public-accounts";
const char kKioskAppAccountDomainPrefix[] = "kiosk-apps";
+const char kArcKioskAppAccountDomainPrefix[] = "arc-kiosk-apps";
const char kDeviceLocalAccountDomainSuffix[] = ".device-local.localhost";
} // namespace
@@ -59,6 +60,9 @@ std::string GenerateDeviceLocalAccountUserId(const std::string& account_id,
case DeviceLocalAccount::TYPE_KIOSK_APP:
domain_prefix = kKioskAppAccountDomainPrefix;
break;
+ case DeviceLocalAccount::TYPE_ARC_KIOSK_APP:
+ domain_prefix = kArcKioskAppAccountDomainPrefix;
+ break;
case DeviceLocalAccount::TYPE_COUNT:
NOTREACHED();
break;
@@ -92,6 +96,11 @@ bool IsDeviceLocalAccountUser(const std::string& user_id,
*type = DeviceLocalAccount::TYPE_KIOSK_APP;
return true;
}
+ if (domain_prefix == kArcKioskAppAccountDomainPrefix) {
+ if (type)
+ *type = DeviceLocalAccount::TYPE_ARC_KIOSK_APP;
+ return true;
+ }
// |user_id| is a device-local account but its type is not recognized.
NOTREACHED();
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account.h ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698