blob: 25c49ae9f2c2cbc09351f6c6517d94b63720f0b2 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_APPS_LINK_CAPTURING_LINK_CAPTURING_FEATURES_H_
#define CHROME_BROWSER_APPS_LINK_CAPTURING_LINK_CAPTURING_FEATURES_H_
#include "base/feature_list.h"
#include "build/build_config.h"
namespace apps::features {
#if BUILDFLAG(IS_CHROMEOS)
// Enables user link capturing on CrOS.
BASE_DECLARE_FEATURE(kLinkCapturingUiUpdate);
#endif // BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_CHROMEOS)
// Enables link capturing into apps when links are clicked from another app
// context, regardless of user setting.
BASE_DECLARE_FEATURE(kAppToAppLinkCapturing);
// Enables link capturing into a specific set of Google Workspace apps when
// links are clicked from another app context, regardless of user setting.
BASE_DECLARE_FEATURE(kAppToAppLinkCapturingWorkspaceApps);
#endif
// Returns true if the updated UX for link capturing needs to be shown. Only set
// to true if kDesktopPWAsLinkCapturing is enabled on desktop platforms, and
// kLinkCapturingUiUpdate on CrOS platforms.
bool ShouldShowLinkCapturingUX();
} // namespace apps::features
#endif // CHROME_BROWSER_APPS_LINK_CAPTURING_LINK_CAPTURING_FEATURES_H_