| 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/app_sync_data.h" | 5 #include "chrome/browser/extensions/app_sync_data.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/extension.h" | 7 #include "extensions/common/extension.h" |
| 8 #include "sync/api/sync_data.h" | 8 #include "sync/api/sync_data.h" |
| 9 #include "sync/protocol/app_specifics.pb.h" | 9 #include "sync/protocol/app_specifics.pb.h" |
| 10 #include "sync/protocol/sync.pb.h" | 10 #include "sync/protocol/sync.pb.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 AppSyncData::AppSyncData() {} | 14 AppSyncData::AppSyncData() {} |
| 15 | 15 |
| 16 AppSyncData::AppSyncData(const syncer::SyncData& sync_data) { | 16 AppSyncData::AppSyncData(const syncer::SyncData& sync_data) { |
| 17 PopulateFromSyncData(sync_data); | 17 PopulateFromSyncData(sync_data); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 app_launch_ordinal_ = syncer::StringOrdinal(specifics.app_launch_ordinal()); | 68 app_launch_ordinal_ = syncer::StringOrdinal(specifics.app_launch_ordinal()); |
| 69 page_ordinal_ = syncer::StringOrdinal(specifics.page_ordinal()); | 69 page_ordinal_ = syncer::StringOrdinal(specifics.page_ordinal()); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void AppSyncData::PopulateFromSyncData(const syncer::SyncData& sync_data) { | 72 void AppSyncData::PopulateFromSyncData(const syncer::SyncData& sync_data) { |
| 73 PopulateFromAppSpecifics(sync_data.GetSpecifics().app()); | 73 PopulateFromAppSpecifics(sync_data.GetSpecifics().app()); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace extensions | 76 } // namespace extensions |
| OLD | NEW |