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

Unified Diff: chrome/browser/sync/syncable/model_type.cc

Issue 7453014: [Sync] Refactor sync datatype error handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test 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/syncable/model_type.cc
diff --git a/chrome/browser/sync/syncable/model_type.cc b/chrome/browser/sync/syncable/model_type.cc
index 868b43caea1e868ace627f3ceff37aeee0e0e01f..7749f65581558aaa98b4abc2afe2d771955a8e88 100644
--- a/chrome/browser/sync/syncable/model_type.cc
+++ b/chrome/browser/sync/syncable/model_type.cc
@@ -247,7 +247,10 @@ std::string ModelTypeSetToString(const ModelTypeSet& model_types) {
std::string result;
for (ModelTypeSet::const_iterator iter = model_types.begin();
iter != model_types.end();) {
- result += ModelTypeToString(*iter);
+ if (*iter >= FIRST_REAL_MODEL_TYPE && *iter < MODEL_TYPE_COUNT)
akalin 2011/07/20 23:43:59 Hmm. What is the reason for this?
Nicolas Zea 2011/07/21 20:09:50 Yeah, thinking about it more this isn't the right
+ result += ModelTypeToString(*iter);
+ else
+ result += "Unspecified";
if (++iter != model_types.end())
result += ", ";
}

Powered by Google App Engine
This is Rietveld 408576698