aboutsummaryrefslogtreecommitdiff
path: root/dbus/field_trial_list.proto
diff options
context:
space:
mode:
authorChris Masone <cmasone@chromium.org>2013-06-24 13:59:16 -0700
committerChromeBot <chrome-bot@google.com>2013-07-02 12:33:54 -0700
commit49a362bcd369819f2d1140101d42a7db7fc17c68 (patch)
tree7d01e8e355598d1dbe6117ee1a10cfe530077594 /dbus/field_trial_list.proto
parent1222289c4c98f133683918c4ec4fdd97545b7604 (diff)
downloadsystem_api-49a362bcd369819f2d1140101d42a7db7fc17c68.tar.gz
Define serialization format for Finch state.
We'd like to enable Chrome to push Finch experiment state to the rest of the system, so we can run experiments outside the browser. To support this, we want to allow Chrome to serialize this state to disk using a protobuf. BUG=chromium:253627 TEST=protoc --cpp_out=. field_trial_list.proto Change-Id: Ib943f63bf244503a39a8ec7b3a7dd8f0b5250038 Reviewed-on: https://gerrit.chromium.org/gerrit/59833 Tested-by: Chris Masone <cmasone@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Chris Masone <cmasone@chromium.org>
Diffstat (limited to 'dbus/field_trial_list.proto')
-rw-r--r--dbus/field_trial_list.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/dbus/field_trial_list.proto b/dbus/field_trial_list.proto
new file mode 100644
index 0000000..c7a9051
--- /dev/null
+++ b/dbus/field_trial_list.proto
@@ -0,0 +1,18 @@
+// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+option optimize_for = LITE_RUNTIME;
+
+// This protobuf is for serializing Finch experimental field trial data to
+// disk for consumption by processes outside the browser.
+message FieldTrialList {
+ // A pair representing a Field Trial and its selected group.
+ message ActiveGroup {
+ optional string trial_name = 1;
+ optional string group_name = 2;
+ }
+
+ // All the active field trial groups for this device.
+ repeated ActiveGroup group = 1;
+}