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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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 | « extensions/common/extension.h ('k') | extensions/shell/browser/shell_extension_system.h » ('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 #include "extensions/common/extension.h" 5 #include "extensions/common/extension.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 InstalledExtensionInfo::InstalledExtensionInfo( 761 InstalledExtensionInfo::InstalledExtensionInfo(
762 const Extension* extension, 762 const Extension* extension,
763 bool is_update, 763 bool is_update,
764 bool from_ephemeral, 764 bool from_ephemeral,
765 const std::string& old_name) 765 const std::string& old_name)
766 : extension(extension), 766 : extension(extension),
767 is_update(is_update), 767 is_update(is_update),
768 from_ephemeral(from_ephemeral), 768 from_ephemeral(from_ephemeral),
769 old_name(old_name) {} 769 old_name(old_name) {}
770 770
771 UnloadedExtensionInfo::UnloadedExtensionInfo(
772 const Extension* extension,
773 UnloadedExtensionInfo::Reason reason)
774 : reason(reason),
775 extension(extension) {}
776
777 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 771 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
778 const Extension* extension, 772 const Extension* extension,
779 const PermissionSet& permissions, 773 const PermissionSet& permissions,
780 Reason reason) 774 Reason reason)
781 : reason(reason), extension(extension), permissions(permissions) {} 775 : reason(reason), extension(extension), permissions(permissions) {}
782 776
783 } // namespace extensions 777 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/shell/browser/shell_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698