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 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 extension_path(path), | 1464 extension_path(path), |
1465 extension_location(location) { | 1465 extension_location(location) { |
1466 if (manifest) | 1466 if (manifest) |
1467 extension_manifest.reset(manifest->DeepCopy()); | 1467 extension_manifest.reset(manifest->DeepCopy()); |
1468 } | 1468 } |
1469 | 1469 |
1470 ExtensionInfo::~ExtensionInfo() {} | 1470 ExtensionInfo::~ExtensionInfo() {} |
1471 | 1471 |
1472 InstalledExtensionInfo::InstalledExtensionInfo( | 1472 InstalledExtensionInfo::InstalledExtensionInfo( |
1473 const Extension* extension, | 1473 const Extension* extension, |
1474 bool is_update) | 1474 bool is_update, |
| 1475 const std::string& old_name) |
1475 : extension(extension), | 1476 : extension(extension), |
1476 is_update(is_update) {} | 1477 is_update(is_update), |
| 1478 old_name(old_name) {} |
1477 | 1479 |
1478 UnloadedExtensionInfo::UnloadedExtensionInfo( | 1480 UnloadedExtensionInfo::UnloadedExtensionInfo( |
1479 const Extension* extension, | 1481 const Extension* extension, |
1480 extension_misc::UnloadedExtensionReason reason) | 1482 extension_misc::UnloadedExtensionReason reason) |
1481 : reason(reason), | 1483 : reason(reason), |
1482 already_disabled(false), | 1484 already_disabled(false), |
1483 extension(extension) {} | 1485 extension(extension) {} |
1484 | 1486 |
1485 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 1487 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
1486 const Extension* extension, | 1488 const Extension* extension, |
1487 const PermissionSet* permissions, | 1489 const PermissionSet* permissions, |
1488 Reason reason) | 1490 Reason reason) |
1489 : reason(reason), | 1491 : reason(reason), |
1490 extension(extension), | 1492 extension(extension), |
1491 permissions(permissions) {} | 1493 permissions(permissions) {} |
1492 | 1494 |
1493 } // namespace extensions | 1495 } // namespace extensions |
OLD | NEW |