Commit 7ecb3513 authored by Chris Morin's avatar Chris Morin Committed by Commit Bot

Add ARC feature flags for Chrome OS

This adds four ARC feature flags that are needed by arcvm-launch to
determine what commandline parameters should be passed to the Android
kernel.

BUG=b:136128691
TEST=dbus-send

Change-Id: If7e189977d4f289a4278df21ef995d6f8fcc2664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1695737Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Chris Morin <cmtm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676620}
parent 26b43e5e
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h" #include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/profiles/profile_manager.h" #include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/chrome_features.h" #include "chrome/common/chrome_features.h"
#include "components/arc/arc_features.h"
#include "dbus/bus.h" #include "dbus/bus.h"
#include "dbus/message.h" #include "dbus/message.h"
#include "third_party/cros_system_api/dbus/service_constants.h" #include "third_party/cros_system_api/dbus/service_constants.h"
...@@ -106,7 +107,10 @@ void ChromeFeaturesServiceProvider::IsFeatureEnabled( ...@@ -106,7 +107,10 @@ void ChromeFeaturesServiceProvider::IsFeatureEnabled(
dbus::MethodCall* method_call, dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender) { dbus::ExportedObject::ResponseSender response_sender) {
static const base::Feature constexpr* kFeatureLookup[] = { static const base::Feature constexpr* kFeatureLookup[] = {
&features::kUsbbouncer, &features::kUsbguard}; &features::kUsbbouncer, &features::kUsbguard,
&arc::kNativeBridgeExperimentFeature, &arc::kFilePickerExperimentFeature,
&arc::kCustomTabsExperimentFeature, &arc::kPrintSpoolerExperimentFeature,
};
dbus::MessageReader reader(method_call); dbus::MessageReader reader(method_call);
std::string feature_name; std::string feature_name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment