summaryrefslogtreecommitdiffstats
path: root/sync/protocol/proto_enum_conversions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/protocol/proto_enum_conversions.cc')
-rw-r--r--sync/protocol/proto_enum_conversions.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sync/protocol/proto_enum_conversions.cc b/sync/protocol/proto_enum_conversions.cc
index af95822..c624efe 100644
--- a/sync/protocol/proto_enum_conversions.cc
+++ b/sync/protocol/proto_enum_conversions.cc
@@ -170,6 +170,18 @@ const char* GetActionString(sync_pb::SyncEnums::Action action) {
}
+const char* GetLaunchTypeString(sync_pb::AppSpecifics::LaunchType launch_type) {
+ ASSERT_ENUM_BOUNDS(sync_pb::AppSpecifics, LaunchType, PINNED, WINDOW);
+ switch (launch_type) {
+ ENUM_CASE(sync_pb::AppSpecifics, PINNED);
+ ENUM_CASE(sync_pb::AppSpecifics, REGULAR);
+ ENUM_CASE(sync_pb::AppSpecifics, FULLSCREEN);
+ ENUM_CASE(sync_pb::AppSpecifics, WINDOW);
+ }
+ NOTREACHED();
+ return "";
+}
+
const char* GetDeviceTypeString(
sync_pb::SyncEnums::DeviceType device_type) {
ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, DeviceType, TYPE_WIN, TYPE_TABLET);