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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 std::string mode; | 263 std::string mode; |
264 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode)) | 264 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode)) |
265 registration_mode_ = GetDeviceModeFromString(mode); | 265 registration_mode_ = GetDeviceModeFromString(mode); |
266 } else if (enterprise_user.empty() && enterprise_owned != "true") { | 266 } else if (enterprise_user.empty() && enterprise_owned != "true") { |
267 // |registration_user_| is empty on consumer devices. | 267 // |registration_user_| is empty on consumer devices. |
268 registration_mode_ = DEVICE_MODE_CONSUMER; | 268 registration_mode_ = DEVICE_MODE_CONSUMER; |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 } // namespace policy | 272 } // namespace policy |
OLD | NEW |