OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/common/permissions/usb_device_permission.h" | 5 #include "extensions/common/permissions/usb_device_permission.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "extensions/common/permissions/permissions_info.h" | 13 #include "extensions/common/permissions/permissions_info.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/extensions_strings.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 #if defined(ENABLE_EXTENSIONS) | 17 #if defined(ENABLE_EXTENSIONS) |
18 #include "device/usb/usb_ids.h" | 18 #include "device/usb/usb_ids.h" |
19 #endif | 19 #endif |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 UsbDevicePermission::UsbDevicePermission( | 23 UsbDevicePermission::UsbDevicePermission( |
24 const APIPermissionInfo* info) | 24 const APIPermissionInfo* info) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 } | 66 } |
67 #else | 67 #else |
68 NOTREACHED(); | 68 NOTREACHED(); |
69 #endif // defined(ENABLE_EXTENSIONS) | 69 #endif // defined(ENABLE_EXTENSIONS) |
70 | 70 |
71 return result; | 71 return result; |
72 } | 72 } |
73 | 73 |
74 } // namespace extensions | 74 } // namespace extensions |
OLD | NEW |