[Webapps] Add switch to about:flags

Adds a flag to about:flags to make the "Add to Homescreen"
menu item visible.  Requires a downstream patch to actually put
the menu item in.

BUG=286156

Review URL: https://chromiumcodereview.appspot.com/23676005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221770 0039d316-1c4b-4281-b951-d872f2087c98
parent 235ea291
...@@ -5473,6 +5473,12 @@ Keep your key file in a safe place. You will need it to create new versions of y ...@@ -5473,6 +5473,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
Enable the accessibility tab switcher for Android. Enable the accessibility tab switcher for Android.
</message> </message>
</if> </if>
<message name="IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_NAME" desc="Name of the flag to enable the add to homescreen menu item.">
Enable Add to Homescreen
</message>
<message name="IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_DESCRIPTION" desc="Description of the flag to enable the add to homescreen menu item.">
Enable the add to homescreen menu item.
</message>
<message name="IDS_TOUCH_EVENTS_NAME" desc="Title of the touch-events flag." > <message name="IDS_TOUCH_EVENTS_NAME" desc="Title of the touch-events flag." >
Enable touch events Enable touch events
</message> </message>
......
...@@ -1636,6 +1636,17 @@ const Experiment kExperiments[] = { ...@@ -1636,6 +1636,17 @@ const Experiment kExperiments[] = {
kOsDesktop, kOsDesktop,
SINGLE_VALUE_TYPE(switches::kEnableDeviceMotion) SINGLE_VALUE_TYPE(switches::kEnableDeviceMotion)
}, },
{
"enable-add-to-homescreen",
IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_NAME,
IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_DESCRIPTION,
kOsAndroid,
#if defined(OS_ANDROID)
SINGLE_VALUE_TYPE(switches::kEnableAddToHomescreen)
#else
SINGLE_VALUE_TYPE("")
#endif
},
}; };
const Experiment* experiments = kExperiments; const Experiment* experiments = kExperiments;
......
...@@ -1493,6 +1493,9 @@ const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; ...@@ -1493,6 +1493,9 @@ const char kFakeCloudPolicyType[] = "fake-cloud-policy-type";
const char kEnableAccessibilityTabSwitcher[] = const char kEnableAccessibilityTabSwitcher[] =
"enable-accessibility-tab-switcher"; "enable-accessibility-tab-switcher";
// Makes the "Add to Homescreen" shortcut visible.
const char kEnableAddToHomescreen[] = "enable-add-to-homescreen";
// Enables the new NTP. // Enables the new NTP.
const char kEnableNewNTP[] = "enable-new-ntp"; const char kEnableNewNTP[] = "enable-new-ntp";
......
...@@ -407,6 +407,7 @@ extern const char kFakeCloudPolicyType[]; ...@@ -407,6 +407,7 @@ extern const char kFakeCloudPolicyType[];
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
extern const char kEnableAccessibilityTabSwitcher[]; extern const char kEnableAccessibilityTabSwitcher[];
extern const char kEnableAddToHomescreen[];
extern const char kEnableNewNTP[]; extern const char kEnableNewNTP[];
extern const char kEnableTranslate[]; extern const char kEnableTranslate[];
extern const char kTabletUI[]; extern const char kTabletUI[];
......
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