summaryrefslogtreecommitdiffstats
path: root/sync/util
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 04:01:39 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 04:01:39 +0000
commit34e98172346b0da9355a3a55189d8536adce649b (patch)
tree57d35504a96e41f384687a9a842c072686623f4e /sync/util
parent408b4837cc567d493ce78f931162e3d3bfd71540 (diff)
downloadchromium_src-34e98172346b0da9355a3a55189d8536adce649b.zip
chromium_src-34e98172346b0da9355a3a55189d8536adce649b.tar.gz
chromium_src-34e98172346b0da9355a3a55189d8536adce649b.tar.bz2
sync: Add DeviceInfo protobuf and supporting code
This commit introduces the DeviceInfo type and protobuf. It also introduces the DeviceInfo class, which provides an interface for the rest of the code to access the information stored within the DeviceInfo type. The DeviceInfo class takes over some functions that used to belong to the SessionModelAssociator. The ChangeProcessor that keeps this information up to date and exposes notifications of device info changes will be added in a future commit. At the time of this commit, this should all be mostly dead code. The server does not support this type yet, so we do not yet attempt to download or manipulate any actual DeviceInfo nodes. BUG=122825 Review URL: https://chromiumcodereview.appspot.com/10985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/util')
-rw-r--r--sync/util/data_type_histogram.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sync/util/data_type_histogram.h b/sync/util/data_type_histogram.h
index 77eb57c..90cf605 100644
--- a/sync/util/data_type_histogram.h
+++ b/sync/util/data_type_histogram.h
@@ -81,6 +81,9 @@
case ::syncer::APP_NOTIFICATIONS: \
PER_DATA_TYPE_MACRO("AppNotifications"); \
break; \
+ case ::syncer::DEVICE_INFO: \
+ PER_DATA_TYPE_MACRO("DeviceInfo"); \
+ break; \
default: \
NOTREACHED() << "Unknown datatype " \
<< ::syncer::ModelTypeToString(datatype); \