Index: chrome/browser/sync/sessions/status_controller.h |
diff --git a/chrome/browser/sync/sessions/status_controller.h b/chrome/browser/sync/sessions/status_controller.h |
index a12bee87e8fd6074a47a9f00dbb75c464e9e67c0..f011e263dbfc1f6b32dcebe0d605d9f8dbd8bb96 100644 |
--- a/chrome/browser/sync/sessions/status_controller.h |
+++ b/chrome/browser/sync/sessions/status_controller.h |
@@ -102,6 +102,25 @@ class StatusController { |
return &shared_.updates_response; |
} |
+ void set_last_download_updates_result(const SyncOperationResult result) { |
+ shared_.last_download_updates_result = result; |
+ } |
+ void set_last_post_commit_result(const SyncOperationResult result) { |
+ shared_.last_post_commit_result = result; |
+ } |
+ void set_last_clear_data_result(const SyncOperationResult result) { |
+ shared_.last_clear_data_result = result; |
+ } |
+ SyncOperationResult last_download_updates_result() const { |
+ return shared_.last_download_updates_result; |
+ } |
+ SyncOperationResult last_post_commit_result() const { |
+ return shared_.last_post_commit_result; |
+ } |
+ SyncOperationResult last_clear_data_result() const { |
+ return shared_.last_clear_data_result; |
+ } |
+ |
// Errors and SyncerStatus. |
const ErrorCounters& error() const { |
return shared_.error.value(); |
@@ -229,7 +248,7 @@ class StatusController { |
void set_unsynced_handles(const std::vector<int64>& unsynced_handles); |
void increment_num_local_overwrites(); |
void increment_num_server_overwrites(); |
- void set_sync_protocol_error(const SyncProtocolError& error); |
+ void set_sync_protocol_error(const SyncOperationResult& error); |
void set_commit_set(const OrderedCommitSet& commit_set); |
void update_conflict_sets_built(bool built); |