Adding new feature flag for self share prototype
Change-Id: I8a2708b8f98e9911c0cd59e664dc7d0f2c819e4c
Reviewed-on: https://chromium-review.googlesource.com/c/1285524
Commit-Queue: Jeffrey Cohen <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#601980}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 38efd55..49d195b 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4472,6 +4472,10 @@
flag_descriptions::kEnableIncognitoWindowCounterName,
flag_descriptions::kEnableIncognitoWindowCounterDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kEnableIncognitoWindowCounter)},
+
+ {"enable-send-tab-to-self", flag_descriptions::kSendTabToSelfName,
+ flag_descriptions::kSendTabToSelfDescription, kOsAll,
+ FEATURE_VALUE_TYPE(features::kSendTabToSelf)},
};
class FlagsStateSingleton {
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 38a979a..871a15b 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1604,6 +1604,11 @@
const char kSavePreviousDocumentResourcesUntilOnLoad[] =
"Save resources until onload completes";
+const char kSendTabToSelfName[] = "Send tab to self";
+const char kSendTabToSelfDescription[] =
+ "Allows users to push tabs from Android devices to other synced "
+ "devices, in order to easily transition those tabs to the new device ";
+
const char kServiceWorkerPaymentAppsName[] = "Service Worker payment apps";
const char kServiceWorkerPaymentAppsDescription[] =
"Enable Service Worker applications to integrate as payment apps";
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index a15ee1c..d941c04 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -975,6 +975,9 @@
extern const char kSavePreviousDocumentResourcesUntilOnDOMContentLoaded[];
extern const char kSavePreviousDocumentResourcesUntilOnLoad[];
+extern const char kSendTabToSelfName[];
+extern const char kSendTabToSelfDescription[];
+
extern const char kServiceWorkerPaymentAppsName[];
extern const char kServiceWorkerPaymentAppsDescription[];
diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
index a2af922..ce3dd976 100644
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -500,6 +500,10 @@
const base::Feature kSecurityKeyAttestationPrompt{
"SecurityKeyAttestationPrompt", base::FEATURE_ENABLED_BY_DEFAULT};
+// Controls whether the user can push tabs between devices..
+const base::Feature kSendTabToSelf{"SendTabToSelf",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
#if defined(OS_ANDROID)
const base::Feature kShowTrustedPublisherURL{"ShowTrustedPublisherURL",
base::FEATURE_ENABLED_BY_DEFAULT};
diff --git a/chrome/common/chrome_features.h b/chrome/common/chrome_features.h
index 492ef3c..890f0d2e 100644
--- a/chrome/common/chrome_features.h
+++ b/chrome/common/chrome_features.h
@@ -334,6 +334,9 @@
COMPONENT_EXPORT(CHROME_FEATURES)
extern const base::Feature kSecurityKeyAttestationPrompt;
+COMPONENT_EXPORT(CHROME_FEATURES)
+extern const base::Feature kSendTabToSelf;
+
#if defined(OS_ANDROID)
COMPONENT_EXPORT(CHROME_FEATURES)
extern const base::Feature kShowTrustedPublisherURL;