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

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

Issue 11308072: Include v2 packaged apps in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment explaining index Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/test/integration/two_client_apps_sync_test.cc ('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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/two_client_apps_sync_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698