| 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/permissions/api_permission.h" | 5 #include "chrome/common/extensions/permissions/api_permission.h" |
| 6 | 6 |
| 7 #include "ui/base/l10n/l10n_util.h" | 7 #include "ui/base/l10n/l10n_util.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 APIPermissionInfo::~APIPermissionInfo() { } | 135 APIPermissionInfo::~APIPermissionInfo() { } |
| 136 | 136 |
| 137 APIPermission* APIPermissionInfo::CreateAPIPermission() const { | 137 APIPermission* APIPermissionInfo::CreateAPIPermission() const { |
| 138 return api_permission_constructor_ ? | 138 return api_permission_constructor_ ? |
| 139 api_permission_constructor_(this) : new SimpleAPIPermission(this); | 139 api_permission_constructor_(this) : new SimpleAPIPermission(this); |
| 140 } | 140 } |
| 141 | 141 |
| 142 PermissionMessage APIPermissionInfo::GetMessage_() const { | 142 PermissionMessage APIPermissionInfo::GetMessage_() const { |
| 143 return PermissionMessage( | 143 return PermissionMessage( |
| 144 message_id_, l10n_util::GetStringUTF16(l10n_message_id_)); | 144 message_id_, l10n_util::GetStringUTF16(l10n_message_id_), string16()); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace extensions | 147 } // namespace extensions |
| OLD | NEW |