| 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/browser/extensions/extension_sync_data.h" | 5 #include "chrome/browser/extensions/extension_sync_data.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/extensions/app_sync_data.h" | 8 #include "chrome/browser/extensions/app_sync_data.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/common/extensions/extension.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 "sync/api/sync_data.h" | 12 #include "sync/api/sync_data.h" |
| 13 #include "sync/protocol/extension_specifics.pb.h" | 13 #include "sync/protocol/extension_specifics.pb.h" |
| 14 #include "sync/protocol/sync.pb.h" | 14 #include "sync/protocol/sync.pb.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 ExtensionSyncData::ExtensionSyncData() | 18 ExtensionSyncData::ExtensionSyncData() |
| 19 : uninstalled_(false), | 19 : uninstalled_(false), |
| 20 enabled_(false), | 20 enabled_(false), |
| 21 incognito_enabled_(false) { | 21 incognito_enabled_(false) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const sync_pb::EntitySpecifics& entity_specifics = sync_data.GetSpecifics(); | 106 const sync_pb::EntitySpecifics& entity_specifics = sync_data.GetSpecifics(); |
| 107 | 107 |
| 108 if (entity_specifics.has_extension()) { | 108 if (entity_specifics.has_extension()) { |
| 109 PopulateFromExtensionSpecifics(entity_specifics.extension()); | 109 PopulateFromExtensionSpecifics(entity_specifics.extension()); |
| 110 } else { | 110 } else { |
| 111 LOG(FATAL) << "Attempt to sync bad EntitySpecifics."; | 111 LOG(FATAL) << "Attempt to sync bad EntitySpecifics."; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace extensions | 115 } // namespace extensions |
| OLD | NEW |