OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/enterprise_install_attributes.h" | 5 #include "chrome/browser/policy/enterprise_install_attributes.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 8 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
9 #include "chrome/common/net/gaia/gaia_auth_util.h" | 9 #include "google_apis/gaia/gaia_auth_util.h" |
10 | 10 |
11 namespace policy { | 11 namespace policy { |
12 | 12 |
13 namespace { | 13 namespace { |
14 // Constants for the possible device modes that can be stored in the lockbox. | 14 // Constants for the possible device modes that can be stored in the lockbox. |
15 const char kConsumerDeviceMode[] = "consumer"; | 15 const char kConsumerDeviceMode[] = "consumer"; |
16 const char kEnterpiseDeviceMode[] = "enterprise"; | 16 const char kEnterpiseDeviceMode[] = "enterprise"; |
17 const char kKioskDeviceMode[] = "kiosk"; | 17 const char kKioskDeviceMode[] = "kiosk"; |
18 const char kUnknownDeviceMode[] = "unknown"; | 18 const char kUnknownDeviceMode[] = "unknown"; |
19 | 19 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 registration_mode_ = GetDeviceModeFromString(mode); | 193 registration_mode_ = GetDeviceModeFromString(mode); |
194 } else if (enterprise_user.empty() && enterprise_owned != "true") { | 194 } else if (enterprise_user.empty() && enterprise_owned != "true") { |
195 // |registration_user_| is empty on consumer devices. | 195 // |registration_user_| is empty on consumer devices. |
196 registration_mode_ = DEVICE_MODE_CONSUMER; | 196 registration_mode_ = DEVICE_MODE_CONSUMER; |
197 } | 197 } |
198 } | 198 } |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 } // namespace policy | 202 } // namespace policy |
OLD | NEW |