Chromium Code Reviews| Index: chrome/browser/sync/sessions/session_state.h |
| diff --git a/chrome/browser/sync/sessions/session_state.h b/chrome/browser/sync/sessions/session_state.h |
| index 2abd559cb511b3da44249ddb5a71936f684c422b..93e8bed6b8b0e8bef4312a349a239634dfcd8907 100644 |
| --- a/chrome/browser/sync/sessions/session_state.h |
| +++ b/chrome/browser/sync/sessions/session_state.h |
| @@ -23,6 +23,7 @@ |
| #include "chrome/browser/sync/engine/syncer_types.h" |
| #include "chrome/browser/sync/engine/syncproto.h" |
| #include "chrome/browser/sync/sessions/ordered_commit_set.h" |
| +#include "chrome/browser/sync/sessions/sync_error.h" |
|
tim (not reviewing)
2011/08/24 14:47:51
Given that the convention here is having enums and
lipalani1
2011/08/25 06:14:06
That was my first thought too. But I am adding ano
tim (not reviewing)
2011/08/25 15:58:54
OK, actually a new file makes sense here.
But I th
|
| #include "chrome/browser/sync/syncable/model_type.h" |
| #include "chrome/browser/sync/syncable/model_type_payload_map.h" |
| #include "chrome/browser/sync/syncable/syncable.h" |
| @@ -131,7 +132,8 @@ struct SyncSessionSnapshot { |
| bool did_commit_items, |
| const SyncSourceInfo& source, |
| size_t num_entries, |
| - base::Time sync_start_time); |
| + base::Time sync_start_time, |
| + SyncError sync_error); |
|
tim (not reviewing)
2011/08/24 14:47:51
I think this belongs in SyncerStatus or ErrorCount
lipalani1
2011/08/25 06:14:06
Ha ha went through the same argument in my head ab
tim (not reviewing)
2011/08/25 15:58:54
I read this as "well, yes, this sucks, and we shou
|
| ~SyncSessionSnapshot(); |
| // Caller takes ownership of the returned dictionary. |
| @@ -154,6 +156,7 @@ struct SyncSessionSnapshot { |
| const SyncSourceInfo source; |
| const size_t num_entries; |
| base::Time sync_start_time; |
| + SyncError sync_error; |
| }; |
| // Tracks progress of conflicts and their resolution using conflict sets. |
| @@ -323,6 +326,7 @@ struct AllModelTypeState { |
| DirtyOnWrite<ErrorCounters> error_counters; |
| SyncCycleControlParameters control_params; |
| DirtyOnWrite<int64> num_server_changes_remaining; |
| + DirtyOnWrite<SyncError> sync_error; |
| OrderedCommitSet commit_set; |
| }; |