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

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: Respond to reviewer feedback. Created 7 years, 6 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/browser/web_applications/web_app_win.cc ('k') | chrome/common/extensions/extension.cc » ('j') | 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 #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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 546 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
547 }; 547 };
548 548
549 struct InstalledExtensionInfo { 549 struct InstalledExtensionInfo {
550 // The extension being installed - this should always be non-NULL. 550 // The extension being installed - this should always be non-NULL.
551 const Extension* extension; 551 const Extension* extension;
552 552
553 // True if the extension is being updated; false if it is being installed. 553 // True if the extension is being updated; false if it is being installed.
554 bool is_update; 554 bool is_update;
555 555
556 InstalledExtensionInfo(const Extension* extension, bool is_update); 556 // The name of the extension prior to this update. Will be empty if
557 // |is_update| is false.
558 std::string old_name;
559
560 InstalledExtensionInfo(const Extension* extension,
561 bool is_update,
562 const std::string& old_name);
557 }; 563 };
558 564
559 struct UnloadedExtensionInfo { 565 struct UnloadedExtensionInfo {
560 extension_misc::UnloadedExtensionReason reason; 566 extension_misc::UnloadedExtensionReason reason;
561 567
562 // Was the extension already disabled? 568 // Was the extension already disabled?
563 bool already_disabled; 569 bool already_disabled;
564 570
565 // The extension being unloaded - this should always be non-NULL. 571 // The extension being unloaded - this should always be non-NULL.
566 const Extension* extension; 572 const Extension* extension;
(...skipping 22 matching lines...) Expand all
589 595
590 UpdatedExtensionPermissionsInfo( 596 UpdatedExtensionPermissionsInfo(
591 const Extension* extension, 597 const Extension* extension,
592 const PermissionSet* permissions, 598 const PermissionSet* permissions,
593 Reason reason); 599 Reason reason);
594 }; 600 };
595 601
596 } // namespace extensions 602 } // namespace extensions
597 603
598 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 604 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app_win.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698