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

Side by Side Diff: chrome/browser/sync/sessions/status_controller.cc

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/sessions/status_controller.h" 5 #include "chrome/browser/sync/sessions/status_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/sync/protocol/sync_protocol_error.h" 10 #include "chrome/browser/sync/protocol/sync_protocol_error.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 if (value == 0) 105 if (value == 0)
106 return; 106 return;
107 shared_.error.mutate()->num_conflicting_commits += value; 107 shared_.error.mutate()->num_conflicting_commits += value;
108 } 108 }
109 109
110 void StatusController::increment_num_updates_downloaded_by(int value) { 110 void StatusController::increment_num_updates_downloaded_by(int value) {
111 shared_.syncer_status.mutate()->num_updates_downloaded_total += value; 111 shared_.syncer_status.mutate()->num_updates_downloaded_total += value;
112 } 112 }
113 113
114 void StatusController::set_types_needing_local_migration( 114 void StatusController::set_types_needing_local_migration(
115 syncable::ModelEnumSet types) { 115 syncable::ModelTypeSet types) {
116 shared_.syncer_status.mutate()->types_needing_local_migration = types; 116 shared_.syncer_status.mutate()->types_needing_local_migration = types;
117 } 117 }
118 118
119 void StatusController::increment_num_tombstone_updates_downloaded_by( 119 void StatusController::increment_num_tombstone_updates_downloaded_by(
120 int value) { 120 int value) {
121 shared_.syncer_status.mutate()->num_tombstone_updates_downloaded_total += 121 shared_.syncer_status.mutate()->num_tombstone_updates_downloaded_total +=
122 value; 122 value;
123 } 123 }
124 124
125 void StatusController::reset_num_conflicting_commits() { 125 void StatusController::reset_num_conflicting_commits() {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void StatusController::set_debug_info_sent() { 302 void StatusController::set_debug_info_sent() {
303 shared_.control_params.debug_info_sent = true; 303 shared_.control_params.debug_info_sent = true;
304 } 304 }
305 305
306 bool StatusController::debug_info_sent() const { 306 bool StatusController::debug_info_sent() const {
307 return shared_.control_params.debug_info_sent; 307 return shared_.control_params.debug_info_sent;
308 } 308 }
309 309
310 } // namespace sessions 310 } // namespace sessions
311 } // namespace browser_sync 311 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/status_controller.h ('k') | chrome/browser/sync/sessions/sync_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698