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

Unified Diff: chrome/browser/sync/engine/update_applicator.h

Issue 8366030: Introduce the plumbing necessary to report Unrecoverable error from model safe workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For a high level review. Created 9 years, 2 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/engine/update_applicator.h
diff --git a/chrome/browser/sync/engine/update_applicator.h b/chrome/browser/sync/engine/update_applicator.h
index 1196fccf29f5128678c2ecbd8415c46d630c1783..96529bc70dba083117d209faad4a56d99c4b58fc 100644
--- a/chrome/browser/sync/engine/update_applicator.h
+++ b/chrome/browser/sync/engine/update_applicator.h
@@ -55,6 +55,8 @@ class UpdateApplicator {
sessions::ConflictProgress* conflict_progress,
sessions::UpdateProgress* update_progress);
+ bool failed_update() const;
+
private:
// Track the status of all applications.
// We treat encryption conflicts as nonblocking conflict items when we save
@@ -69,6 +71,8 @@ class UpdateApplicator {
void SaveProgress(sessions::ConflictProgress* conflict_progress,
sessions::UpdateProgress* update_progress);
void ClearConflicts();
+ void set_failed_update();
+ bool failed_udpate() const;
// Returns true iff conflicting_ids_ is empty. Does not check
// encryption_conflict_ids_.
@@ -77,6 +81,7 @@ class UpdateApplicator {
std::vector<syncable::Id> conflicting_ids_;
std::vector<syncable::Id> successful_ids_;
std::vector<syncable::Id> encryption_conflict_ids_;
+ bool failed_update_;
};
// If true, AttemptOneApplication will skip over |entry| and return true.

Powered by Google App Engine
This is Rietveld 408576698