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

Unified Diff: chrome/browser/sync/glue/model_associator.h

Issue 7453014: [Sync] Refactor sync datatype error handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 5 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/glue/model_associator.h
diff --git a/chrome/browser/sync/glue/model_associator.h b/chrome/browser/sync/glue/model_associator.h
index eaa2a45e3021c159c3e39514b6e73fd937914310..b49215ea4447462d7e74b235fdad9e624c53cc65 100644
--- a/chrome/browser/sync/glue/model_associator.h
+++ b/chrome/browser/sync/glue/model_associator.h
@@ -9,6 +9,8 @@
#include "base/basictypes.h"
#include "chrome/browser/sync/syncable/model_type.h"
+class SyncError;
+
namespace sync_api {
class BaseNode;
}
@@ -27,10 +29,10 @@ class AssociatorInterface {
// should be identical and corresponding. Returns true on
// success. On failure of this step, we should abort the sync
// operation and report an error to the user.
- virtual bool AssociateModels() = 0;
+ virtual bool AssociateModels(SyncError* error) = 0;
akalin 2011/07/25 22:43:13 Change these to return SyncErrors too? (and subcl
Nicolas Zea 2011/07/25 23:08:19 Since this is already an established (and now depr
akalin 2011/07/25 23:49:32 Yeah, for practicality's sake I guess we can leave
// Clears all the associations between the chrome and sync models.
- virtual bool DisassociateModels() = 0;
+ virtual bool DisassociateModels(SyncError* error) = 0;
// The has_nodes out parameter is set to true if the sync model has
// nodes other than the permanent tagged nodes. The method may

Powered by Google App Engine
This is Rietveld 408576698