| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3851 | 3851 |
| 3852 case Extension::TYPE_USER_SCRIPT: | 3852 case Extension::TYPE_USER_SCRIPT: |
| 3853 // We only want to sync user scripts with gallery update URLs. | 3853 // We only want to sync user scripts with gallery update URLs. |
| 3854 if (UpdatesFromGallery()) | 3854 if (UpdatesFromGallery()) |
| 3855 return SYNC_TYPE_EXTENSION; | 3855 return SYNC_TYPE_EXTENSION; |
| 3856 else | 3856 else |
| 3857 return SYNC_TYPE_NONE; | 3857 return SYNC_TYPE_NONE; |
| 3858 | 3858 |
| 3859 case Extension::TYPE_HOSTED_APP: | 3859 case Extension::TYPE_HOSTED_APP: |
| 3860 case Extension::TYPE_LEGACY_PACKAGED_APP: | 3860 case Extension::TYPE_LEGACY_PACKAGED_APP: |
| 3861 case Extension::TYPE_PLATFORM_APP: |
| 3861 return SYNC_TYPE_APP; | 3862 return SYNC_TYPE_APP; |
| 3862 | 3863 |
| 3863 default: | 3864 default: |
| 3864 return SYNC_TYPE_NONE; | 3865 return SYNC_TYPE_NONE; |
| 3865 } | 3866 } |
| 3866 } | 3867 } |
| 3867 | 3868 |
| 3868 bool Extension::IsSyncable() const { | 3869 bool Extension::IsSyncable() const { |
| 3869 // TODO(akalin): Figure out if we need to allow some other types. | 3870 // TODO(akalin): Figure out if we need to allow some other types. |
| 3870 | 3871 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4094 | 4095 |
| 4095 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 4096 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 4096 const Extension* extension, | 4097 const Extension* extension, |
| 4097 const PermissionSet* permissions, | 4098 const PermissionSet* permissions, |
| 4098 Reason reason) | 4099 Reason reason) |
| 4099 : reason(reason), | 4100 : reason(reason), |
| 4100 extension(extension), | 4101 extension(extension), |
| 4101 permissions(permissions) {} | 4102 permissions(permissions) {} |
| 4102 | 4103 |
| 4103 } // namespace extensions | 4104 } // namespace extensions |
| OLD | NEW |