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/common/extensions/features/permission_feature.h" | 5 #include "chrome/common/extensions/features/permission_feature.h" |
6 | 6 |
7 #include "chrome/common/extensions/permissions/permission_set.h" | 7 #include "chrome/common/extensions/permissions/permission_set.h" |
8 | 8 |
9 namespace extensions { | 9 namespace extensions { |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 return error; | 42 return error; |
43 | 43 |
44 if (extension_types()->empty()) { | 44 if (extension_types()->empty()) { |
45 return name() + ": Permission features must specify at least one " + | 45 return name() + ": Permission features must specify at least one " + |
46 "value for extension_types."; | 46 "value for extension_types."; |
47 } | 47 } |
48 | 48 |
49 if (!GetContexts()->empty()) | 49 if (!GetContexts()->empty()) |
50 return name() + ": Permission features do not support contexts."; | 50 return name() + ": Permission features do not support contexts."; |
51 | 51 |
52 return ""; | 52 return std::string(); |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
OLD | NEW |