| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/engine/store_timestamps_command.h" | 5 #include "chrome/browser/sync/engine/store_timestamps_command.h" |
| 6 | 6 |
| 7 #include "chrome/browser/sync/sessions/status_controller.h" | 7 #include "chrome/browser/sync/sessions/status_controller.h" |
| 8 #include "chrome/browser/sync/sessions/sync_session.h" | 8 #include "chrome/browser/sync/sessions/sync_session.h" |
| 9 #include "chrome/browser/sync/syncable/directory_manager.h" | 9 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 10 #include "chrome/browser/sync/syncable/model_type.h" | 10 #include "chrome/browser/sync/syncable/model_type.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 forward_progress_types[model] = true; | 44 forward_progress_types[model] = true; |
| 45 dir->SetDownloadProgress(model, updates.new_progress_marker(i)); | 45 dir->SetDownloadProgress(model, updates.new_progress_marker(i)); |
| 46 } | 46 } |
| 47 DCHECK(forward_progress_types.any() || | 47 DCHECK(forward_progress_types.any() || |
| 48 updates.changes_remaining() == 0); | 48 updates.changes_remaining() == 0); |
| 49 if (VLOG_IS_ON(1)) { | 49 if (VLOG_IS_ON(1)) { |
| 50 DVLOG_IF(1, forward_progress_types.any()) | 50 DVLOG_IF(1, forward_progress_types.any()) |
| 51 << "Get Updates got new progress marker for types: " | 51 << "Get Updates got new progress marker for types: " |
| 52 << forward_progress_types.to_string() << " out of possible: " | 52 << forward_progress_types.to_string() << " out of possible: " |
| 53 << status->updates_request_types().to_string(); | 53 << syncable::ModelEnumSetToString(status->updates_request_types()); |
| 54 } | 54 } |
| 55 if (updates.has_changes_remaining()) { | 55 if (updates.has_changes_remaining()) { |
| 56 int64 changes_left = updates.changes_remaining(); | 56 int64 changes_left = updates.changes_remaining(); |
| 57 DVLOG(1) << "Changes remaining: " << changes_left; | 57 DVLOG(1) << "Changes remaining: " << changes_left; |
| 58 status->set_num_server_changes_remaining(changes_left); | 58 status->set_num_server_changes_remaining(changes_left); |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace browser_sync | 62 } // namespace browser_sync |
| OLD | NEW |