diff options
author | Xiaohui Chen <xiaohuic@google.com> | 2017-05-09 11:37:34 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-12 03:25:39 -0700 |
commit | 2a19709e6f2e52d8e8e276b63e46a0ff31020d57 (patch) | |
tree | 41053a6c3628caa7d6a402b83577828cc4d4f4fd | |
parent | 58aa5124d7194cea591f88781be87a924d6b668d (diff) | |
download | system_api-2a19709e6f2e52d8e8e276b63e46a0ff31020d57.tar.gz |
Add login_manager dbus proto message
Add proto message StartArcInstanceRequest for login_manager dbus
method SessionManagerInterface.StartArcInstance.
BUG=b:37989086
TEST=build and flash locally
Change-Id: I26c022207c69fc80c79bf1ea5309f9418ff703ab
Reviewed-on: https://chromium-review.googlesource.com/500627
Commit-Ready: Xiaohui Chen <xiaohuic@chromium.org>
Tested-by: Xiaohui Chen <xiaohuic@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
-rw-r--r-- | dbus/login_manager/arc.proto | 26 | ||||
-rw-r--r-- | system_api.gyp | 23 | ||||
-rw-r--r-- | system_api.pc | 2 |
3 files changed, 50 insertions, 1 deletions
diff --git a/dbus/login_manager/arc.proto b/dbus/login_manager/arc.proto new file mode 100644 index 0000000..1d7dcee --- /dev/null +++ b/dbus/login_manager/arc.proto @@ -0,0 +1,26 @@ +// Copyright 2017 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. + +syntax = "proto2"; + +option optimize_for = LITE_RUNTIME; + +package login_manager; + +// ARC startup options sent from Chrome to session manager. This message is +// used in SessionManagerInterface.StartArcInterface method. +message StartArcInstanceRequest { + // Account ID of the user to start ARC for. This must be the same as the + // one given in StartSession. + optional string account_id = 1; + + // Option to disable ACTION_BOOT_COMPLETED broadcast for 3rd party apps. + optional bool skip_boot_completed_broadcast = 2; + + // Option to enable package manager service to scan /vendor/priv-app + // directory. + optional bool scan_vendor_priv_app = 3; + + // Next ID to use: 4 +} diff --git a/system_api.gyp b/system_api.gyp index 4044802..031ef01 100644 --- a/system_api.gyp +++ b/system_api.gyp @@ -141,5 +141,28 @@ '<(SHARED_INTERMEDIATE_DIR)/include/biod/proto_bindings/messages.pb.cc', ] }, + { + 'target_name': 'system_api-login_manager-protos-gen', + 'type': 'none', + 'variables': { + 'proto_in_dir': 'dbus/login_manager', + 'proto_out_dir': 'include/login_manager/proto_bindings', + }, + 'sources': [ + '<(proto_in_dir)/arc.proto', + ], + 'includes': ['../../platform2/common-mk/protoc.gypi'], + }, + { + 'target_name': 'system_api-login_manager-protos', + 'type': 'static_library', + 'standalone_static_library': 1, + 'dependencies': [ + 'system_api-login_manager-protos-gen', + ], + 'sources': [ + '<(SHARED_INTERMEDIATE_DIR)/include/login_manager/proto_bindings/arc.pb.cc', + ] + }, ] } diff --git a/system_api.pc b/system_api.pc index 791f27b..fca0abb 100644 --- a/system_api.pc +++ b/system_api.pc @@ -1,4 +1,4 @@ Name: system_api Description: Protobuffers and headers shared by Chromium OS and Chromium. Version: 0.1 -Libs: -lsystem_api-power_manager-protos -lsystem_api-cryptohome-protos -lsystem_api-authpolicy-protos -lsystem_api-biod-protos -lsystem_api-protos +Libs: -lsystem_api-power_manager-protos -lsystem_api-cryptohome-protos -lsystem_api-authpolicy-protos -lsystem_api-biod-protos -lsystem_api-protos -lsystem_api-login_manager-protos |