| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/sync/glue/device_info_sync_service.h" | 5 #include "components/sync_driver/device_info_sync_service.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "chrome/browser/sync/glue/local_device_info_provider.h" | 8 #include "components/sync_driver/local_device_info_provider.h" |
| 9 #include "sync/api/sync_change.h" | 9 #include "sync/api/sync_change.h" |
| 10 #include "sync/protocol/sync.pb.h" | 10 #include "sync/protocol/sync.pb.h" |
| 11 #include "sync/util/time.h" | 11 #include "sync/util/time.h" |
| 12 | 12 |
| 13 namespace browser_sync { | 13 namespace sync_driver { |
| 14 | 14 |
| 15 using syncer::ModelType; | 15 using syncer::ModelType; |
| 16 using syncer::SyncChange; | 16 using syncer::SyncChange; |
| 17 using syncer::SyncChangeList; | 17 using syncer::SyncChangeList; |
| 18 using syncer::SyncChangeProcessor; | 18 using syncer::SyncChangeProcessor; |
| 19 using syncer::SyncData; | 19 using syncer::SyncData; |
| 20 using syncer::SyncDataList; | 20 using syncer::SyncDataList; |
| 21 using syncer::SyncErrorFactory; | 21 using syncer::SyncErrorFactory; |
| 22 using syncer::SyncMergeResult; | 22 using syncer::SyncMergeResult; |
| 23 | 23 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 void DeviceInfoSyncService::DeleteSyncData(const std::string& client_id) { | 333 void DeviceInfoSyncService::DeleteSyncData(const std::string& client_id) { |
| 334 SyncDataMap::iterator iter = all_data_.find(client_id); | 334 SyncDataMap::iterator iter = all_data_.find(client_id); |
| 335 if (iter != all_data_.end()) { | 335 if (iter != all_data_.end()) { |
| 336 DVLOG(1) << "Deleting DEVICE_INFO for " | 336 DVLOG(1) << "Deleting DEVICE_INFO for " |
| 337 << iter->second.GetSpecifics().device_info().client_name() | 337 << iter->second.GetSpecifics().device_info().client_name() |
| 338 << " with ID " << client_id; | 338 << " with ID " << client_id; |
| 339 all_data_.erase(iter); | 339 all_data_.erase(iter); |
| 340 } | 340 } |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace browser_sync | 343 } // namespace sync_driver |
| OLD | NEW |