-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
features.h
40 lines (30 loc) · 1.46 KB
/
features.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2023 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_COMPANION_CORE_FEATURES_H_
#define CHROME_BROWSER_COMPANION_CORE_FEATURES_H_
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "build/build_config.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace companion {
namespace features {
BASE_DECLARE_FEATURE(kSidePanelCompanion);
extern const base::FeatureParam<std::string> kHomepageURLForCompanion;
extern const base::FeatureParam<std::string> kImageUploadURLForCompanion;
extern const base::FeatureParam<bool> kEnableOpenCompanionForImageSearch;
extern const base::FeatureParam<bool> kEnableOpenCompanionForWebSearch;
extern const base::FeatureParam<bool> kOpenLinksInCurrentTab;
} // namespace features
namespace switches {
extern const char kDisableCheckUserPermissionsForCompanion[];
extern const char kForceCompanionPinnedState[];
// Returns true if checking of the user's permissions to share page information
// with the Companion server should be ignored. Returns true only in tests.
bool ShouldOverrideCheckingUserPermissionsForCompanion();
// Returns whether the Companion pin state should force overridden, regardless
// of prefs or labs state.
absl::optional<bool> ShouldForceOverrideCompanionPinState();
} // namespace switches
} // namespace companion
#endif // CHROME_BROWSER_COMPANION_CORE_FEATURES_H_