1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
12 namespace sync_helper
{
14 // NOTE: The check in the functions here only considers the data in extension
15 // itself, not the environment it is in. To determine whether an extension
16 // should be synced, you probably want to use util::ShouldSync.
18 // Returns true if |extension| should be synced.
19 bool IsSyncable(const Extension
* extension
);
21 // Component extensions usually aren't synced, but some are so that they'll
22 // retain their position in the app list. Returns true for component extensions
24 bool IsSyncableComponentExtension(const Extension
* extension
);
26 } // namespace sync_helper
27 } // namespace extensions
29 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_