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

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

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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') | 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 "extensions/common/extension.h" 5 #include "extensions/common/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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 extension_location(location) { 763 extension_location(location) {
764 if (manifest) 764 if (manifest)
765 extension_manifest.reset(manifest->DeepCopy()); 765 extension_manifest.reset(manifest->DeepCopy());
766 } 766 }
767 767
768 ExtensionInfo::~ExtensionInfo() {} 768 ExtensionInfo::~ExtensionInfo() {}
769 769
770 InstalledExtensionInfo::InstalledExtensionInfo( 770 InstalledExtensionInfo::InstalledExtensionInfo(
771 const Extension* extension, 771 const Extension* extension,
772 bool is_update, 772 bool is_update,
773 bool from_ephemeral,
773 const std::string& old_name) 774 const std::string& old_name)
774 : extension(extension), 775 : extension(extension),
775 is_update(is_update), 776 is_update(is_update),
777 from_ephemeral(from_ephemeral),
776 old_name(old_name) {} 778 old_name(old_name) {}
777 779
778 UnloadedExtensionInfo::UnloadedExtensionInfo( 780 UnloadedExtensionInfo::UnloadedExtensionInfo(
779 const Extension* extension, 781 const Extension* extension,
780 UnloadedExtensionInfo::Reason reason) 782 UnloadedExtensionInfo::Reason reason)
781 : reason(reason), 783 : reason(reason),
782 extension(extension) {} 784 extension(extension) {}
783 785
784 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 786 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
785 const Extension* extension, 787 const Extension* extension,
786 const PermissionSet* permissions, 788 const PermissionSet* permissions,
787 Reason reason) 789 Reason reason)
788 : reason(reason), 790 : reason(reason),
789 extension(extension), 791 extension(extension),
790 permissions(permissions) {} 792 permissions(permissions) {}
791 793
792 } // namespace extensions 794 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698