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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 extension_path(path), | 1219 extension_path(path), |
1220 extension_location(location) { | 1220 extension_location(location) { |
1221 if (manifest) | 1221 if (manifest) |
1222 extension_manifest.reset(manifest->DeepCopy()); | 1222 extension_manifest.reset(manifest->DeepCopy()); |
1223 } | 1223 } |
1224 | 1224 |
1225 ExtensionInfo::~ExtensionInfo() {} | 1225 ExtensionInfo::~ExtensionInfo() {} |
1226 | 1226 |
1227 InstalledExtensionInfo::InstalledExtensionInfo( | 1227 InstalledExtensionInfo::InstalledExtensionInfo( |
1228 const Extension* extension, | 1228 const Extension* extension, |
1229 bool is_update) | 1229 bool is_update, |
| 1230 const std::string& old_name) |
1230 : extension(extension), | 1231 : extension(extension), |
1231 is_update(is_update) {} | 1232 is_update(is_update), |
| 1233 old_name(old_name) {} |
1232 | 1234 |
1233 UnloadedExtensionInfo::UnloadedExtensionInfo( | 1235 UnloadedExtensionInfo::UnloadedExtensionInfo( |
1234 const Extension* extension, | 1236 const Extension* extension, |
1235 extension_misc::UnloadedExtensionReason reason) | 1237 extension_misc::UnloadedExtensionReason reason) |
1236 : reason(reason), | 1238 : reason(reason), |
1237 already_disabled(false), | 1239 already_disabled(false), |
1238 extension(extension) {} | 1240 extension(extension) {} |
1239 | 1241 |
1240 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 1242 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
1241 const Extension* extension, | 1243 const Extension* extension, |
1242 const PermissionSet* permissions, | 1244 const PermissionSet* permissions, |
1243 Reason reason) | 1245 Reason reason) |
1244 : reason(reason), | 1246 : reason(reason), |
1245 extension(extension), | 1247 extension(extension), |
1246 permissions(permissions) {} | 1248 permissions(permissions) {} |
1247 | 1249 |
1248 } // namespace extensions | 1250 } // namespace extensions |
OLD | NEW |