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 "chromeos/app_mode/kiosk_oem_manifest_parser.h" | 5 #include "chromeos/app_mode/kiosk_oem_manifest_parser.h" |
6 | 6 |
7 #include "base/json/json_file_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
| 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 | 11 |
11 namespace chromeos { | 12 namespace chromeos { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 const char kEnterpriseManaged[] = "enterprise_managed"; | 16 const char kEnterpriseManaged[] = "enterprise_managed"; |
16 const char kAllowReset[] = "can_exit_enrollment"; | 17 const char kAllowReset[] = "can_exit_enrollment"; |
17 const char kDeviceRequisition[] = "device_requisition"; | 18 const char kDeviceRequisition[] = "device_requisition"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 &manifest->enterprise_managed) || | 50 &manifest->enterprise_managed) || |
50 !dict->GetBoolean(kAllowReset, | 51 !dict->GetBoolean(kAllowReset, |
51 &manifest->can_exit_enrollment)) { | 52 &manifest->can_exit_enrollment)) { |
52 return false; | 53 return false; |
53 } | 54 } |
54 | 55 |
55 return true; | 56 return true; |
56 } | 57 } |
57 | 58 |
58 } // namespace chromeos | 59 } // namespace chromeos |
OLD | NEW |