OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/policy/registry_dict_win.h" | 5 #include "chrome/browser/policy/registry_dict_win.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/sys_byteorder.h" | 12 #include "base/sys_byteorder.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/win/registry.h" | 14 #include "base/win/registry.h" |
15 #include "chrome/common/json_schema/json_schema_constants.h" | 15 #include "components/json_schema/json_schema_constants.h" |
16 | 16 |
17 namespace schema = json_schema_constants; | 17 namespace schema = json_schema_constants; |
18 | 18 |
19 using base::win::RegistryKeyIterator; | 19 using base::win::RegistryKeyIterator; |
20 using base::win::RegistryValueIterator; | 20 using base::win::RegistryValueIterator; |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 return result.Pass(); | 391 return result.Pass(); |
392 } | 392 } |
393 default: | 393 default: |
394 LOG(WARNING) << "Can't convert registry key to schema type " << type; | 394 LOG(WARNING) << "Can't convert registry key to schema type " << type; |
395 } | 395 } |
396 | 396 |
397 return make_scoped_ptr(base::Value::CreateNullValue()); | 397 return make_scoped_ptr(base::Value::CreateNullValue()); |
398 } | 398 } |
399 | 399 |
400 } // namespace policy | 400 } // namespace policy |
OLD | NEW |