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

Unified Diff: sync/syncable/model_type.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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
« no previous file with comments | « sync/syncable/entry_kernel.cc ('k') | sync/syncable/model_type_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index fee297390c89b03a948e18ae380f97a09c107e47..1bf1ded295cdceae38f985fc353128f734be6134 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -24,10 +24,9 @@
#include "sync/protocol/typed_url_specifics.pb.h"
namespace syncer {
-namespace syncable {
-void AddDefaultFieldValue(syncable::ModelType datatype,
- sync_pb::EntitySpecifics* specifics) {
+void AddDefaultFieldValue(ModelType datatype,
+ sync_pb::EntitySpecifics* specifics) {
switch (datatype) {
case BOOKMARKS:
specifics->mutable_bookmark();
@@ -276,11 +275,11 @@ const char* ModelTypeToString(ModelType model_type) {
}
StringValue* ModelTypeToValue(ModelType model_type) {
- if (model_type >= syncable::FIRST_REAL_MODEL_TYPE) {
+ if (model_type >= FIRST_REAL_MODEL_TYPE) {
return Value::CreateStringValue(ModelTypeToString(model_type));
- } else if (model_type == syncable::TOP_LEVEL_FOLDER) {
+ } else if (model_type == TOP_LEVEL_FOLDER) {
return Value::CreateStringValue("Top-level folder");
- } else if (model_type == syncable::UNSPECIFIED) {
+ } else if (model_type == UNSPECIFIED) {
return Value::CreateStringValue("Unspecified");
}
NOTREACHED();
@@ -540,5 +539,4 @@ bool IsRealDataType(ModelType model_type) {
return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT;
}
-} // namespace syncable
} // namespace syncer
« no previous file with comments | « sync/syncable/entry_kernel.cc ('k') | sync/syncable/model_type_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698