summaryrefslogtreecommitdiffstats
path: root/sync/internal_api
diff options
context:
space:
mode:
authormaxbogue <maxbogue@chromium.org>2015-08-06 18:46:24 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-07 01:47:09 +0000
commita909f56705b64f3cd067fdba76225b330f8bca48 (patch)
tree1044f89a803382fea2b341cd26edb418ee340242 /sync/internal_api
parent77ea8edc1ca575aef9aefcedb6570ca95df74d16 (diff)
downloadchromium_src-a909f56705b64f3cd067fdba76225b330f8bca48.zip
chromium_src-a909f56705b64f3cd067fdba76225b330f8bca48.tar.gz
chromium_src-a909f56705b64f3cd067fdba76225b330f8bca48.tar.bz2
[Sync] Add auto-generated ModelType in Java.
The new ModelType is just represented by integer constants. ModelTypeHelper uses JNI to convert the constants to strings for the invalidation code and will replace the logic in the old ModelType. BUG=509788 Review URL: https://codereview.chromium.org/1247853007 Cr-Commit-Position: refs/heads/master@{#342260}
Diffstat (limited to 'sync/internal_api')
-rw-r--r--sync/internal_api/public/base/model_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sync/internal_api/public/base/model_type.h b/sync/internal_api/public/base/model_type.h
index 718100f..383135b 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -34,6 +34,8 @@ namespace syncer {
// TODO(akalin): Move the non-exported functions in this file to a
// private header.
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.sync
enum ModelType {
// Object type unknown. Objects may transition through
// the unknown state during their initial creation, before