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

Unified Diff: chrome/browser/sync/sessions/sync_session.h

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/sync_session.h
diff --git a/chrome/browser/sync/sessions/sync_session.h b/chrome/browser/sync/sessions/sync_session.h
index abed10eac7fee2729f73822592e96fcf2acd02f9..2da276a43100759150a8faf72bbb52f382f80e1b 100644
--- a/chrome/browser/sync/sessions/sync_session.h
+++ b/chrome/browser/sync/sessions/sync_session.h
@@ -112,6 +112,14 @@ class SyncSession {
// engine again.
bool HasMoreToSync() const;
+ // Returns true if this session completed without experiencing any sort of
+ // errors.
tim (not reviewing) 2012/01/10 17:17:34 "any sort of errors" is pretty vague. I know we c
rlarocque 2012/01/10 20:40:56 All successes look alike, but there are many kinds
+ //
+ // Returns false if SyncShare has not been called on this session yet, or
+ // if ResetTransientState() has been called on this session since the last
+ // call to SyncShare.
+ bool Succeeded() const;
+
// Collects all state pertaining to how and why |s| originated and unions it
// with corresponding state in |this|, leaving |s| unchanged. Allows |this|
// to take on the responsibilities |s| had (e.g. certain data types) in the

Powered by Google App Engine
This is Rietveld 408576698