Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_util.h" 10 #include "base/file_util.h"
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 Manifest::Location location) 1734 Manifest::Location location)
1735 : extension_id(id), 1735 : extension_id(id),
1736 extension_path(path), 1736 extension_path(path),
1737 extension_location(location) { 1737 extension_location(location) {
1738 if (manifest) 1738 if (manifest)
1739 extension_manifest.reset(manifest->DeepCopy()); 1739 extension_manifest.reset(manifest->DeepCopy());
1740 } 1740 }
1741 1741
1742 ExtensionInfo::~ExtensionInfo() {} 1742 ExtensionInfo::~ExtensionInfo() {}
1743 1743
1744 InstalledExtensionInfo::InstalledExtensionInfo(
1745 const Extension* extension,
1746 bool is_update)
1747 : extension(extension),
1748 is_update(is_update) {}
1749
1744 UnloadedExtensionInfo::UnloadedExtensionInfo( 1750 UnloadedExtensionInfo::UnloadedExtensionInfo(
1745 const Extension* extension, 1751 const Extension* extension,
1746 extension_misc::UnloadedExtensionReason reason) 1752 extension_misc::UnloadedExtensionReason reason)
1747 : reason(reason), 1753 : reason(reason),
1748 already_disabled(false), 1754 already_disabled(false),
1749 extension(extension) {} 1755 extension(extension) {}
1750 1756
1751 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 1757 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
1752 const Extension* extension, 1758 const Extension* extension,
1753 const PermissionSet* permissions, 1759 const PermissionSet* permissions,
1754 Reason reason) 1760 Reason reason)
1755 : reason(reason), 1761 : reason(reason),
1756 extension(extension), 1762 extension(extension),
1757 permissions(permissions) {} 1763 permissions(permissions) {}
1758 1764
1759 } // namespace extensions 1765 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698