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

Side by Side Diff: components/sync/engine/cycle/model_neutral_state.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 months 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
OLDNEW
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 "components/sync/sessions/model_neutral_state.h" 5 #include "components/sync/engine/cycle/model_neutral_state.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 namespace sessions {
9 8
10 ModelNeutralState::ModelNeutralState() 9 ModelNeutralState::ModelNeutralState()
11 : num_successful_commits(0), 10 : num_successful_commits(0),
12 num_successful_bookmark_commits(0), 11 num_successful_bookmark_commits(0),
13 num_updates_downloaded_total(0), 12 num_updates_downloaded_total(0),
14 num_tombstone_updates_downloaded_total(0), 13 num_tombstone_updates_downloaded_total(0),
15 num_reflected_updates_downloaded_total(0), 14 num_reflected_updates_downloaded_total(0),
16 num_updates_applied(0), 15 num_updates_applied(0),
17 num_encryption_conflicts(0), 16 num_encryption_conflicts(0),
18 num_server_conflicts(0), 17 num_server_conflicts(0),
(...skipping 10 matching lines...) Expand all
29 ModelNeutralState::~ModelNeutralState() {} 28 ModelNeutralState::~ModelNeutralState() {}
30 29
31 bool HasSyncerError(const ModelNeutralState& state) { 30 bool HasSyncerError(const ModelNeutralState& state) {
32 const bool get_key_error = SyncerErrorIsError(state.last_get_key_result); 31 const bool get_key_error = SyncerErrorIsError(state.last_get_key_result);
33 const bool download_updates_error = 32 const bool download_updates_error =
34 SyncerErrorIsError(state.last_download_updates_result); 33 SyncerErrorIsError(state.last_download_updates_result);
35 const bool commit_error = SyncerErrorIsError(state.commit_result); 34 const bool commit_error = SyncerErrorIsError(state.commit_result);
36 return get_key_error || download_updates_error || commit_error; 35 return get_key_error || download_updates_error || commit_error;
37 } 36 }
38 37
39 } // namespace sessions
40 } // namespace syncer 38 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/cycle/model_neutral_state.h ('k') | components/sync/engine/cycle/status_counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698