OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/common/extensions/extension.h" | 5 #include "chrome/common/extensions/extension.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 extension_path(path), | 1223 extension_path(path), |
1224 extension_location(location) { | 1224 extension_location(location) { |
1225 if (manifest) | 1225 if (manifest) |
1226 extension_manifest.reset(manifest->DeepCopy()); | 1226 extension_manifest.reset(manifest->DeepCopy()); |
1227 } | 1227 } |
1228 | 1228 |
1229 ExtensionInfo::~ExtensionInfo() {} | 1229 ExtensionInfo::~ExtensionInfo() {} |
1230 | 1230 |
1231 InstalledExtensionInfo::InstalledExtensionInfo( | 1231 InstalledExtensionInfo::InstalledExtensionInfo( |
1232 const Extension* extension, | 1232 const Extension* extension, |
1233 bool is_update) | 1233 bool is_update, |
| 1234 const std::string& old_name) |
1234 : extension(extension), | 1235 : extension(extension), |
1235 is_update(is_update) {} | 1236 is_update(is_update), |
| 1237 old_name(old_name) {} |
1236 | 1238 |
1237 UnloadedExtensionInfo::UnloadedExtensionInfo( | 1239 UnloadedExtensionInfo::UnloadedExtensionInfo( |
1238 const Extension* extension, | 1240 const Extension* extension, |
1239 extension_misc::UnloadedExtensionReason reason) | 1241 extension_misc::UnloadedExtensionReason reason) |
1240 : reason(reason), | 1242 : reason(reason), |
1241 already_disabled(false), | 1243 already_disabled(false), |
1242 extension(extension) {} | 1244 extension(extension) {} |
1243 | 1245 |
1244 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 1246 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
1245 const Extension* extension, | 1247 const Extension* extension, |
1246 const PermissionSet* permissions, | 1248 const PermissionSet* permissions, |
1247 Reason reason) | 1249 Reason reason) |
1248 : reason(reason), | 1250 : reason(reason), |
1249 extension(extension), | 1251 extension(extension), |
1250 permissions(permissions) {} | 1252 permissions(permissions) {} |
1251 | 1253 |
1252 } // namespace extensions | 1254 } // namespace extensions |
OLD | NEW |