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

Unified Diff: chrome/browser/sync/sessions/status_controller.cc

Issue 9158004: Detect sync server communication errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/sessions/status_controller.cc
diff --git a/chrome/browser/sync/sessions/status_controller.cc b/chrome/browser/sync/sessions/status_controller.cc
index bf9416d51d52d2601e5e3cd0985a7795ee662f4a..64dd4295a7dab50cc3a05db8adc547a27d747073 100644
--- a/chrome/browser/sync/sessions/status_controller.cc
+++ b/chrome/browser/sync/sessions/status_controller.cc
@@ -211,6 +211,19 @@ void StatusController::set_sync_protocol_error(
shared_.error.mutate()->sync_protocol_error = error;
}
+void StatusController::set_download_updates_result(const SyncerError result) {
+ shared_.error.mutate()->download_updates_result = result;
tim (not reviewing) 2012/01/10 17:17:34 If you add stuff to this class, it's a good idea t
rlarocque 2012/01/10 20:40:56 Done. I usually wouldn't bother to test getter an
tim (not reviewing) 2012/01/11 01:09:00 Right... I made it that way because this file is p
+}
+
+void StatusController::set_post_commit_result(const SyncerError result) {
+ shared_.error.mutate()->post_commit_result = result;
+}
+
+void StatusController::set_process_commit_response_result(
+ const SyncerError result) {
+ shared_.error.mutate()->process_commit_response_result = result;
+}
+
void StatusController::set_commit_set(const OrderedCommitSet& commit_set) {
DCHECK(!group_restriction_in_effect_);
shared_.commit_set = commit_set;

Powered by Google App Engine
This is Rietveld 408576698