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_bundle.h" | 5 #include "chrome/browser/extensions/app_sync_bundle.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "chrome/browser/extensions/extension_sync_service.h" | 8 #include "chrome/browser/extensions/extension_sync_service.h" |
9 #include "chrome/common/extensions/extension_set.h" | |
10 #include "chrome/common/extensions/sync_helper.h" | 9 #include "chrome/common/extensions/sync_helper.h" |
11 #include "extensions/browser/app_sorting.h" | 10 #include "extensions/browser/app_sorting.h" |
12 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 12 #include "extensions/common/extension_set.h" |
13 #include "sync/api/sync_change_processor.h" | 13 #include "sync/api/sync_change_processor.h" |
14 #include "sync/api/sync_error_factory.h" | 14 #include "sync/api/sync_error_factory.h" |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 AppSyncBundle::AppSyncBundle(ExtensionSyncService* extension_sync_service) | 18 AppSyncBundle::AppSyncBundle(ExtensionSyncService* extension_sync_service) |
19 : extension_sync_service_(extension_sync_service) {} | 19 : extension_sync_service_(extension_sync_service) {} |
20 | 20 |
21 AppSyncBundle::~AppSyncBundle() {} | 21 AppSyncBundle::~AppSyncBundle() {} |
22 | 22 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 void AppSyncBundle::MarkPendingAppSynced(const std::string& id) { | 165 void AppSyncBundle::MarkPendingAppSynced(const std::string& id) { |
166 pending_sync_data_.erase(id); | 166 pending_sync_data_.erase(id); |
167 synced_apps_.insert(id); | 167 synced_apps_.insert(id); |
168 } | 168 } |
169 | 169 |
170 | 170 |
171 } // namespace extensions | 171 } // namespace extensions |
OLD | NEW |