Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/sync/engine/store_timestamps_command.cc

Issue 8772074: [Sync] Convert syncable/ directory to ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/model_safe_worker_unittest.cc ('k') | chrome/browser/sync/engine/sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698