| 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/sync/syncable/syncable.h" | 5 #include "chrome/browser/sync/syncable/syncable.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <functional> | 9 #include <functional> |
| 10 #include <iomanip> | 10 #include <iomanip> |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 for (int i = FIRST_REAL_MODEL_TYPE; i < MODEL_TYPE_COUNT; ++i) { | 449 for (int i = FIRST_REAL_MODEL_TYPE; i < MODEL_TYPE_COUNT; ++i) { |
| 450 reset_download_progress(ModelTypeFromInt(i)); | 450 reset_download_progress(ModelTypeFromInt(i)); |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 | 453 |
| 454 Directory::PersistedKernelInfo::~PersistedKernelInfo() {} | 454 Directory::PersistedKernelInfo::~PersistedKernelInfo() {} |
| 455 | 455 |
| 456 void Directory::PersistedKernelInfo::reset_download_progress( | 456 void Directory::PersistedKernelInfo::reset_download_progress( |
| 457 ModelType model_type) { | 457 ModelType model_type) { |
| 458 download_progress[model_type].set_data_type_id( | 458 download_progress[model_type].set_data_type_id( |
| 459 GetExtensionFieldNumberFromModelType(model_type)); | 459 GetSpecificsFieldNumberFromModelType(model_type)); |
| 460 // An empty-string token indicates no prior knowledge. | 460 // An empty-string token indicates no prior knowledge. |
| 461 download_progress[model_type].set_token(std::string()); | 461 download_progress[model_type].set_token(std::string()); |
| 462 } | 462 } |
| 463 | 463 |
| 464 Directory::SaveChangesSnapshot::SaveChangesSnapshot() | 464 Directory::SaveChangesSnapshot::SaveChangesSnapshot() |
| 465 : kernel_info_status(KERNEL_SHARE_INFO_INVALID) { | 465 : kernel_info_status(KERNEL_SHARE_INFO_INVALID) { |
| 466 } | 466 } |
| 467 | 467 |
| 468 Directory::SaveChangesSnapshot::~SaveChangesSnapshot() {} | 468 Directory::SaveChangesSnapshot::~SaveChangesSnapshot() {} |
| 469 | 469 |
| (...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 if (entry->ref(NEXT_ID).IsRoot() || | 2370 if (entry->ref(NEXT_ID).IsRoot() || |
| 2371 entry->ref(NEXT_ID) != entry->ref(PREV_ID)) { | 2371 entry->ref(NEXT_ID) != entry->ref(PREV_ID)) { |
| 2372 return entry; | 2372 return entry; |
| 2373 } | 2373 } |
| 2374 } | 2374 } |
| 2375 // There were no children in the linked list. | 2375 // There were no children in the linked list. |
| 2376 return NULL; | 2376 return NULL; |
| 2377 } | 2377 } |
| 2378 | 2378 |
| 2379 } // namespace syncable | 2379 } // namespace syncable |
| OLD | NEW |