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

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

Issue 14993013: Windows: When an app is updated and its name changes, recreate shortcuts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to HEAD. 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
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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 666 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
667 }; 667 };
668 668
669 struct InstalledExtensionInfo { 669 struct InstalledExtensionInfo {
670 // The extension being installed - this should always be non-NULL. 670 // The extension being installed - this should always be non-NULL.
671 const Extension* extension; 671 const Extension* extension;
672 672
673 // True if the extension is being updated; false if it is being installed. 673 // True if the extension is being updated; false if it is being installed.
674 bool is_update; 674 bool is_update;
675 675
676 InstalledExtensionInfo(const Extension* extension, bool is_update); 676 // The name of the extension prior to this update. Will be empty if
677 // |is_update| is false.
678 std::string old_name;
679
680 InstalledExtensionInfo(const Extension* extension, bool is_update,
benwells 2013/05/16 04:30:59 nit: one parameter per line.
681 const std::string& old_name);
677 }; 682 };
678 683
679 struct UnloadedExtensionInfo { 684 struct UnloadedExtensionInfo {
680 extension_misc::UnloadedExtensionReason reason; 685 extension_misc::UnloadedExtensionReason reason;
681 686
682 // Was the extension already disabled? 687 // Was the extension already disabled?
683 bool already_disabled; 688 bool already_disabled;
684 689
685 // The extension being unloaded - this should always be non-NULL. 690 // The extension being unloaded - this should always be non-NULL.
686 const Extension* extension; 691 const Extension* extension;
(...skipping 22 matching lines...) Expand all
709 714
710 UpdatedExtensionPermissionsInfo( 715 UpdatedExtensionPermissionsInfo(
711 const Extension* extension, 716 const Extension* extension,
712 const PermissionSet* permissions, 717 const PermissionSet* permissions,
713 Reason reason); 718 Reason reason);
714 }; 719 };
715 720
716 } // namespace extensions 721 } // namespace extensions
717 722
718 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 723 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698