OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 | 9 |
10 class Extension; | 10 class Extension; |
11 | 11 |
12 namespace sync_helper { | 12 namespace sync_helper { |
13 | 13 |
| 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::ShoudSyncExtension and |
| 17 // util::ShouldSyncApp. |
| 18 |
14 // Returns true if the extension should be synced. | 19 // Returns true if the extension should be synced. |
15 bool IsSyncable(const Extension* extension); | 20 bool IsSyncable(const Extension* extension); |
16 | 21 |
17 // Returns true if the extension uses the sync bucket of this type. | 22 // Returns true if the extension uses the sync bucket of this type. |
18 bool IsSyncableExtension(const Extension* extension); | 23 bool IsSyncableExtension(const Extension* extension); |
19 bool IsSyncableApp(const Extension* extension); | 24 bool IsSyncableApp(const Extension* extension); |
20 | 25 |
21 } // namespace sync_helper | 26 } // namespace sync_helper |
22 } // namespace extensions | 27 } // namespace extensions |
23 | 28 |
24 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ | 29 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ |
OLD | NEW |