| 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/chromeos/policy/enterprise_install_attributes.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 11 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 12 #include "chrome/browser/policy/proto/install_attributes.pb.h" | 12 #include "chrome/browser/policy/proto/install_attributes.pb.h" |
| 13 #include "google_apis/gaia/gaia_auth_util.h" | 13 #include "google_apis/gaia/gaia_auth_util.h" |
| 14 | 14 |
| 15 namespace policy { | 15 namespace policy { |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 std::string mode; | 262 std::string mode; |
| 263 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode)) | 263 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode)) |
| 264 registration_mode_ = GetDeviceModeFromString(mode); | 264 registration_mode_ = GetDeviceModeFromString(mode); |
| 265 } else if (enterprise_user.empty() && enterprise_owned != "true") { | 265 } else if (enterprise_user.empty() && enterprise_owned != "true") { |
| 266 // |registration_user_| is empty on consumer devices. | 266 // |registration_user_| is empty on consumer devices. |
| 267 registration_mode_ = DEVICE_MODE_CONSUMER; | 267 registration_mode_ = DEVICE_MODE_CONSUMER; |
| 268 } | 268 } |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace policy | 271 } // namespace policy |
| OLD | NEW |