| 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 #include "chrome/common/extensions/sync_helper.h" | 5 #include "chrome/common/extensions/sync_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 8 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
| 9 #include "chrome/common/extensions/extension.h" | |
| 10 #include "chrome/common/extensions/extension_constants.h" | 9 #include "chrome/common/extensions/extension_constants.h" |
| 11 #include "chrome/common/extensions/manifest_url_handler.h" | 10 #include "chrome/common/extensions/manifest_url_handler.h" |
| 11 #include "extensions/common/extension.h" |
| 12 #include "extensions/common/manifest.h" | 12 #include "extensions/common/manifest.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 namespace sync_helper { | 15 namespace sync_helper { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 enum SyncType { | 19 enum SyncType { |
| 20 SYNC_TYPE_NONE = 0, | 20 SYNC_TYPE_NONE = 0, |
| 21 SYNC_TYPE_EXTENSION, | 21 SYNC_TYPE_EXTENSION, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 bool IsSyncableExtension(const Extension* extension) { | 93 bool IsSyncableExtension(const Extension* extension) { |
| 94 return GetSyncType(extension) == SYNC_TYPE_EXTENSION; | 94 return GetSyncType(extension) == SYNC_TYPE_EXTENSION; |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool IsSyncableApp(const Extension* extension) { | 97 bool IsSyncableApp(const Extension* extension) { |
| 98 return GetSyncType(extension) == SYNC_TYPE_APP; | 98 return GetSyncType(extension) == SYNC_TYPE_APP; |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace sync_helper | 101 } // namespace sync_helper |
| 102 } // namespace extensions | 102 } // namespace extensions |
| OLD | NEW |