Commit 42c4dccf authored by Patti's avatar Patti Committed by Commit Bot

CrOS Help: Add flag for new help app. When off, show the old help app.

Add a new flag HelpApp (--enable-features=HelpApp) for the new Chrome OS
help app, disabled by default. If this flag is turned on, the old help
app (called the Genius app) will not be shown in the launcher.

BUG=1012578

Change-Id: I093bb905b856aeb9c8a4c629cd5909d53162ac90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1855538Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
Auto-Submit: Patti <patricialor@chromium.org>
Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706151}
parent 563d76fc
...@@ -506,14 +506,16 @@ void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages( ...@@ -506,14 +506,16 @@ void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages(
} }
#if defined(OS_CHROMEOS) && BUILDFLAG(GOOGLE_CHROME_BRANDING) #if defined(OS_CHROMEOS) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
// Since this is a v2 app it has a background page. if (!base::FeatureList::IsEnabled(chromeos::features::kHelpAppV2)) {
AddWithNameAndDescription( // Since this is a v2 Chrome app it has a background page.
IDR_GENIUS_APP_MANIFEST, AddWithNameAndDescription(
base::FilePath( IDR_GENIUS_APP_MANIFEST,
FILE_PATH_LITERAL("/usr/share/chromeos-assets/genius_app")), base::FilePath(
l10n_util::GetStringUTF8(IDS_GENIUS_APP_NAME), FILE_PATH_LITERAL("/usr/share/chromeos-assets/genius_app")),
l10n_util::GetStringFUTF8(IDS_GENIUS_APP_DESCRIPTION, l10n_util::GetStringUTF8(IDS_GENIUS_APP_NAME),
ui::GetChromeOSDeviceName())); l10n_util::GetStringFUTF8(IDS_GENIUS_APP_DESCRIPTION,
ui::GetChromeOSDeviceName()));
}
#endif #endif
if (!skip_session_components) { if (!skip_session_components) {
......
...@@ -127,6 +127,9 @@ const base::Feature kGesturePropertiesDBusService{ ...@@ -127,6 +127,9 @@ const base::Feature kGesturePropertiesDBusService{
const base::Feature kGaiaActionButtons{"GaiaActionButtons", const base::Feature kGaiaActionButtons{"GaiaActionButtons",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// The new ChromeOS Help App. https://crbug.com/1012578.
const base::Feature kHelpAppV2{"HelpAppV2", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable or disable Unified Input Logic for HMM decoder in the IME extension // Enable or disable Unified Input Logic for HMM decoder in the IME extension
// on Chrome OS. // on Chrome OS.
const base::Feature kImeInputLogicHmm{"ImeInputLogicHmm", const base::Feature kImeInputLogicHmm{"ImeInputLogicHmm",
......
...@@ -63,6 +63,7 @@ COMPONENT_EXPORT(CHROMEOS_CONSTANTS) ...@@ -63,6 +63,7 @@ COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kGaiaActionButtons; extern const base::Feature kGaiaActionButtons;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kGesturePropertiesDBusService; extern const base::Feature kGesturePropertiesDBusService;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) extern const base::Feature kHelpAppV2;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kImeInputLogicHmm; extern const base::Feature kImeInputLogicHmm;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
......
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