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

Unified Diff: components/sync/model/model_error.h

Issue 2620773002: [Sync] Use ModelError all the way through to ModelTypeController. (Closed)
Patch Set: const& everything and use a typedef. Created 3 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: components/sync/model/model_error.h
diff --git a/components/sync/model/model_error.h b/components/sync/model/model_error.h
index e61816da37c1bd82802601466aaa321936c04ce4..ebd0dae57076d0b5e2c5fb5b5fd90204edd6e3d9 100644
--- a/components/sync/model/model_error.h
+++ b/components/sync/model/model_error.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/callback.h"
#include "base/location.h"
namespace syncer {
@@ -40,6 +41,9 @@ class ModelError {
std::string message_;
};
+// Typedef for a simple error handler callback.
+using ModelErrorHandler = base::RepeatingCallback<void(const ModelError&)>;
+
} // namespace syncer
#endif // COMPONENTS_SYNC_MODEL_MODEL_ERROR_H_
« no previous file with comments | « components/sync/model/fake_model_type_change_processor.cc ('k') | components/sync/model/model_type_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698