| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/policy/stub_enterprise_install_attributes.h" | 5 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 10 | 10 |
| 11 namespace policy { | 11 namespace policy { |
| 12 | 12 |
| 13 StubEnterpriseInstallAttributes::StubEnterpriseInstallAttributes() | 13 StubEnterpriseInstallAttributes::StubEnterpriseInstallAttributes() |
| 14 : EnterpriseInstallAttributes(NULL, NULL) { | 14 : EnterpriseInstallAttributes(NULL) { |
| 15 device_locked_ = true; | 15 device_locked_ = true; |
| 16 } | 16 } |
| 17 | 17 |
| 18 void StubEnterpriseInstallAttributes::SetDomain(const std::string& domain) { | 18 void StubEnterpriseInstallAttributes::SetDomain(const std::string& domain) { |
| 19 registration_domain_ = domain; | 19 registration_domain_ = domain; |
| 20 } | 20 } |
| 21 | 21 |
| 22 void StubEnterpriseInstallAttributes::SetRegistrationUser( | 22 void StubEnterpriseInstallAttributes::SetRegistrationUser( |
| 23 const std::string& user) { | 23 const std::string& user) { |
| 24 registration_user_ = user; | 24 registration_user_ = user; |
| 25 } | 25 } |
| 26 | 26 |
| 27 void StubEnterpriseInstallAttributes::SetDeviceId(const std::string& id) { | 27 void StubEnterpriseInstallAttributes::SetDeviceId(const std::string& id) { |
| 28 registration_device_id_ = id; | 28 registration_device_id_ = id; |
| 29 } | 29 } |
| 30 | 30 |
| 31 void StubEnterpriseInstallAttributes::SetMode(DeviceMode mode) { | 31 void StubEnterpriseInstallAttributes::SetMode(DeviceMode mode) { |
| 32 registration_mode_ = mode; | 32 registration_mode_ = mode; |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace policy | 35 } // namespace policy |
| OLD | NEW |