Commit 0ca70eaa authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove some useless extern keywords.

Change-Id: I2a7bbb760833230b662eaa38571e0180b81792c0
Reviewed-on: https://chromium-review.googlesource.com/1213372Reviewed-by: default avatarKevin Bailey <krb@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589575}
parent 06a641db
...@@ -133,7 +133,7 @@ int MaskExpectedImportState(int expected_import_state) { ...@@ -133,7 +133,7 @@ int MaskExpectedImportState(int expected_import_state) {
} // namespace } // namespace
extern const char kImportDefault[] = const char kImportDefault[] =
"{\n" "{\n"
"}\n"; "}\n";
typedef FirstRunMasterPrefsBrowserTestT<kImportDefault> typedef FirstRunMasterPrefsBrowserTestT<kImportDefault>
...@@ -151,7 +151,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportDefault, MAYBE_ImportDefault) { ...@@ -151,7 +151,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportDefault, MAYBE_ImportDefault) {
auto_import_state); auto_import_state);
} }
extern const char kImportAll[] = const char kImportAll[] =
"{\n" "{\n"
" \"distribution\": {\n" " \"distribution\": {\n"
" \"import_bookmarks\": true,\n" " \"import_bookmarks\": true,\n"
...@@ -177,7 +177,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportAll, MAYBE_ImportAll) { ...@@ -177,7 +177,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportAll, MAYBE_ImportAll) {
// The bookmarks file doesn't actually need to exist for this integration test // The bookmarks file doesn't actually need to exist for this integration test
// to trigger the interaction being tested. // to trigger the interaction being tested.
extern const char kImportBookmarksFile[] = const char kImportBookmarksFile[] =
"{\n" "{\n"
" \"distribution\": {\n" " \"distribution\": {\n"
" \"import_bookmarks_from_file\": \"/foo/doesntexists.wtv\"\n" " \"import_bookmarks_from_file\": \"/foo/doesntexists.wtv\"\n"
...@@ -203,7 +203,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportBookmarksFile, ...@@ -203,7 +203,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportBookmarksFile,
// Test an import with all import options disabled. This is a regression test // Test an import with all import options disabled. This is a regression test
// for http://crbug.com/169984 where this would cause the import process to // for http://crbug.com/169984 where this would cause the import process to
// stay running, and the NTP to be loaded with no apps. // stay running, and the NTP to be loaded with no apps.
extern const char kImportNothing[] = const char kImportNothing[] =
"{\n" "{\n"
" \"distribution\": {\n" " \"distribution\": {\n"
" \"import_bookmarks\": false,\n" " \"import_bookmarks\": false,\n"
...@@ -230,7 +230,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportNothing, ...@@ -230,7 +230,7 @@ IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsImportNothing,
} }
// Test first run with some tracked preferences. // Test first run with some tracked preferences.
extern const char kWithTrackedPrefs[] = const char kWithTrackedPrefs[] =
"{\n" "{\n"
" \"homepage\": \"example.com\",\n" " \"homepage\": \"example.com\",\n"
" \"homepage_is_newtabpage\": false\n" " \"homepage_is_newtabpage\": false\n"
......
...@@ -99,9 +99,9 @@ const char kAutofillPrefilledFieldsName[] = "Autofill Prefilled Fields"; ...@@ -99,9 +99,9 @@ const char kAutofillPrefilledFieldsName[] = "Autofill Prefilled Fields";
const char kAutofillPrefilledFieldsDescription[] = const char kAutofillPrefilledFieldsDescription[] =
"Allows autofill to fill fields previously filled by the website"; "Allows autofill to fill fields previously filled by the website";
extern const char kAutofillPreviewStyleExperimentName[] = const char kAutofillPreviewStyleExperimentName[] =
"Autofill Preview Style Experiment"; "Autofill Preview Style Experiment";
extern const char kAutofillPreviewStyleExperimentDescription[] = const char kAutofillPreviewStyleExperimentDescription[] =
"Allows experimentation with the Autofill field preview's style."; "Allows experimentation with the Autofill field preview's style.";
const char kAutofillRationalizeRepeatedServerPredictionsName[] = const char kAutofillRationalizeRepeatedServerPredictionsName[] =
...@@ -144,8 +144,8 @@ const char kAutoplayPolicyUserGestureRequired[] = "User gesture is required."; ...@@ -144,8 +144,8 @@ const char kAutoplayPolicyUserGestureRequired[] = "User gesture is required.";
const char kAutoplayPolicyDocumentUserActivation[] = const char kAutoplayPolicyDocumentUserActivation[] =
"Document user activation is required."; "Document user activation is required.";
extern const char kAv1DecoderName[] = "Enable AV1 video decoding."; const char kAv1DecoderName[] = "Enable AV1 video decoding.";
extern const char kAv1DecoderDescription[] = const char kAv1DecoderDescription[] =
"Allow decoding of files with the AV1 video codec."; "Allow decoding of files with the AV1 video codec.";
const char kBackgroundVideoTrackOptimizationName[] = const char kBackgroundVideoTrackOptimizationName[] =
...@@ -760,9 +760,9 @@ const char kEnableResourceLoadingHintsDescription[] = ...@@ -760,9 +760,9 @@ const char kEnableResourceLoadingHintsDescription[] =
"Enable using server-provided resource loading hints to provide a preview " "Enable using server-provided resource loading hints to provide a preview "
"over slow network connections."; "over slow network connections.";
extern const char kEnableSyncUserConsentSeparateTypeName[] = const char kEnableSyncUserConsentSeparateTypeName[] =
"Enable separate sync type for consents"; "Enable separate sync type for consents";
extern const char kEnableSyncUserConsentSeparateTypeDescription[] = const char kEnableSyncUserConsentSeparateTypeDescription[] =
"Emit user consents as a separate sync type instead of user events."; "Emit user consents as a separate sync type instead of user events.";
const char kEnableSyncUSSBookmarksName[] = "Enable USS for bookmarks sync"; const char kEnableSyncUSSBookmarksName[] = "Enable USS for bookmarks sync";
...@@ -802,9 +802,9 @@ const char kEnableWebAuthenticationAPIName[] = "Web Authentication API"; ...@@ -802,9 +802,9 @@ const char kEnableWebAuthenticationAPIName[] = "Web Authentication API";
const char kEnableWebAuthenticationAPIDescription[] = const char kEnableWebAuthenticationAPIDescription[] =
"Enable Web Authentication API support."; "Enable Web Authentication API support.";
extern const char kEnableWebAuthenticationCableSupportName[] = const char kEnableWebAuthenticationCableSupportName[] =
"Web Authentication caBLE support"; "Web Authentication caBLE support";
extern const char kEnableWebAuthenticationCableSupportDescription[] = const char kEnableWebAuthenticationCableSupportDescription[] =
"Enable the cloud-assisted pairingless BLE protocol for use with " "Enable the cloud-assisted pairingless BLE protocol for use with "
"the Web Authentication API."; "the Web Authentication API.";
...@@ -1522,9 +1522,9 @@ const char kReducedReferrerGranularityDescription[] = ...@@ -1522,9 +1522,9 @@ const char kReducedReferrerGranularityDescription[] =
"reduce the amount of information in the 'referer' header for cross-origin " "reduce the amount of information in the 'referer' header for cross-origin "
"requests."; "requests.";
extern const char kRegionalLocalesAsDisplayUIName[] = const char kRegionalLocalesAsDisplayUIName[] =
"Allow regional locales as display UI"; "Allow regional locales as display UI";
extern const char kRegionalLocalesAsDisplayUIDescription[] = const char kRegionalLocalesAsDisplayUIDescription[] =
"This flag allows regional locales to be selected as display UI by the " "This flag allows regional locales to be selected as display UI by the "
"user in Language Settings. The actual locale of the system is derived " "user in Language Settings. The actual locale of the system is derived "
"from the user selection based on some simple fallback logic."; "from the user selection based on some simple fallback logic.";
...@@ -1602,9 +1602,8 @@ const char kServiceWorkerImportedScriptUpdateCheckDescription[] = ...@@ -1602,9 +1602,8 @@ const char kServiceWorkerImportedScriptUpdateCheckDescription[] =
"Extend byte-for-byte update check for scripts that are imported by the " "Extend byte-for-byte update check for scripts that are imported by the "
"service worker script via importScripts()."; "service worker script via importScripts().";
extern const char kServiceWorkerServicificationName[] = const char kServiceWorkerServicificationName[] = "Servicified service workers";
"Servicified service workers"; const char kServiceWorkerServicificationDescription[] =
extern const char kServiceWorkerServicificationDescription[] =
"Enable the servicified service workers. A servicified service worker can " "Enable the servicified service workers. A servicified service worker can "
"have direct connection from its clients, so that fetch events can be " "have direct connection from its clients, so that fetch events can be "
"dispatched through the connection without hopping to the browser process."; "dispatched through the connection without hopping to the browser process.";
...@@ -1738,8 +1737,8 @@ const char kSiteIsolationTrialOptOutDescription[] = ...@@ -1738,8 +1737,8 @@ const char kSiteIsolationTrialOptOutDescription[] =
"isolation is force-enabled via #enable-site-per-process or enterprise " "isolation is force-enabled via #enable-site-per-process or enterprise "
"policy. Caution: this disables important mitigations for the Spectre CPU " "policy. Caution: this disables important mitigations for the Spectre CPU "
"vulnerability affecting most computers."; "vulnerability affecting most computers.";
extern const char kSiteIsolationTrialOptOutChoiceDefault[] = "Default"; const char kSiteIsolationTrialOptOutChoiceDefault[] = "Default";
extern const char kSiteIsolationTrialOptOutChoiceOptOut[] = const char kSiteIsolationTrialOptOutChoiceOptOut[] =
"Opt-out (not recommended)"; "Opt-out (not recommended)";
const char kSiteSettings[] = "Site settings"; const char kSiteSettings[] = "Site settings";
...@@ -3207,13 +3206,12 @@ const char kEnableBackgroundBlurName[] = "Enable background blur."; ...@@ -3207,13 +3206,12 @@ const char kEnableBackgroundBlurName[] = "Enable background blur.";
const char kEnableBackgroundBlurDescription[] = const char kEnableBackgroundBlurDescription[] =
"Enables background blur for the Peeking Launcher and Tab Switcher."; "Enables background blur for the Peeking Launcher and Tab Switcher.";
extern const char kEnableChromeOsAccountManagerName[] = const char kEnableChromeOsAccountManagerName[] = "Enable Account Manager";
"Enable Account Manager"; const char kEnableChromeOsAccountManagerDescription[] =
extern const char kEnableChromeOsAccountManagerDescription[] =
"Enables the Chrome OS Account Manager"; "Enables the Chrome OS Account Manager";
extern const char kEnableContinueReadingName[] = "Enable continue reading"; const char kEnableContinueReadingName[] = "Enable continue reading";
extern const char kEnableContinueReadingDescription[] = const char kEnableContinueReadingDescription[] =
"Enable continue reading feature in Launcher, which allows users to " "Enable continue reading feature in Launcher, which allows users to "
"seamlessly continue reading a web page when they switch devices from " "seamlessly continue reading a web page when they switch devices from "
"phones or tablets to Chromebooks."; "phones or tablets to Chromebooks.";
...@@ -3259,9 +3257,8 @@ const char kEnableHomeLauncherName[] = "Enable home launcher"; ...@@ -3259,9 +3257,8 @@ const char kEnableHomeLauncherName[] = "Enable home launcher";
const char kEnableHomeLauncherDescription[] = const char kEnableHomeLauncherDescription[] =
"Enable home launcher in tablet mode."; "Enable home launcher in tablet mode.";
extern const char kEnableHomeLauncherGesturesName[] = const char kEnableHomeLauncherGesturesName[] = "Enable home launcher gestures";
"Enable home launcher gestures"; const char kEnableHomeLauncherGesturesDescription[] =
extern const char kEnableHomeLauncherGesturesDescription[] =
"Enables using gestures to hide or show the home launcher."; "Enables using gestures to hide or show the home launcher.";
const char kEnableImeMenuName[] = "Enable opt-in IME menu"; const char kEnableImeMenuName[] = "Enable opt-in IME menu";
...@@ -3319,9 +3316,8 @@ const char kEnableVirtualKeyboardUkmName[] = "Enable UKM for virtual keyboard"; ...@@ -3319,9 +3316,8 @@ const char kEnableVirtualKeyboardUkmName[] = "Enable UKM for virtual keyboard";
const char kEnableVirtualKeyboardUkmDescription[] = const char kEnableVirtualKeyboardUkmDescription[] =
"Enables UKM for virtual keyboard"; "Enables UKM for virtual keyboard";
extern const char kEnableZeroStateSuggestionsName[] = const char kEnableZeroStateSuggestionsName[] = "Enable Zero State Suggetions";
"Enable Zero State Suggetions"; const char kEnableZeroStateSuggestionsDescription[] =
extern const char kEnableZeroStateSuggestionsDescription[] =
"Enable Zero State Suggestions feature in Launcher, which will show " "Enable Zero State Suggestions feature in Launcher, which will show "
"suggetions when launcher search box is active with an empty query"; "suggetions when launcher search box is active with an empty query";
......
...@@ -249,8 +249,8 @@ const base::Feature kExperimentalAppBanners { ...@@ -249,8 +249,8 @@ const base::Feature kExperimentalAppBanners {
}; };
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
extern const base::Feature kExperimentalCrostiniUI{ const base::Feature kExperimentalCrostiniUI{"ExperimentalCrostiniUI",
"ExperimentalCrostiniUI", base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
#endif #endif
// If enabled, this feature's |kExternalInstallDefaultButtonKey| field trial // If enabled, this feature's |kExternalInstallDefaultButtonKey| field trial
...@@ -683,10 +683,10 @@ const base::Feature kWebAuthenticationUI{"WebAuthenticationUI", ...@@ -683,10 +683,10 @@ const base::Feature kWebAuthenticationUI{"WebAuthenticationUI",
// Please note that a Chrome policy must also be set, for this to have effect. // Please note that a Chrome policy must also be set, for this to have effect.
// Effectively, this is a kill-switch for the feature. // Effectively, this is a kill-switch for the feature.
// TODO(crbug.com/775415): Remove this kill-switch. // TODO(crbug.com/775415): Remove this kill-switch.
extern const base::Feature kWebRtcRemoteEventLog{ const base::Feature kWebRtcRemoteEventLog{"WebRtcRemoteEventLog",
"WebRtcRemoteEventLog", base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// Compress remote-bound WebRTC event logs (if used; see kWebRtcRemoteEventLog). // Compress remote-bound WebRTC event logs (if used; see kWebRtcRemoteEventLog).
extern const base::Feature kWebRtcRemoteEventLogGzipped{ const base::Feature kWebRtcRemoteEventLogGzipped{
"WebRtcRemoteEventLogGzipped", base::FEATURE_ENABLED_BY_DEFAULT}; "WebRtcRemoteEventLogGzipped", base::FEATURE_ENABLED_BY_DEFAULT};
#endif #endif
......
...@@ -864,7 +864,7 @@ const char kManagedSessionEnabled[] = "managed_session.enabled"; ...@@ -864,7 +864,7 @@ const char kManagedSessionEnabled[] = "managed_session.enabled";
// Boolean pref indicating whether the user has previously dismissed the // Boolean pref indicating whether the user has previously dismissed the
// one-time notification indicating the need for a cleanup powerwash after TPM // one-time notification indicating the need for a cleanup powerwash after TPM
// firmware update that didn't flush the TPM SRK. // firmware update that didn't flush the TPM SRK.
extern const char kTPMFirmwareUpdateCleanupDismissed[] = const char kTPMFirmwareUpdateCleanupDismissed[] =
"tpm_firmware_update.cleanup_dismissed"; "tpm_firmware_update.cleanup_dismissed";
// Boolean pref indicating whether the NetBios Name Query Request Protocol is // Boolean pref indicating whether the NetBios Name Query Request Protocol is
......
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