Commit 507fffde authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove some useless extern keywords.

In turn, the compiler can then figure out some constants that are
declared extern are actually unused, so delete them,

2020 version of https://crrev.com/589575.

Change-Id: I7d98698f5124e8cd3f2f20611ea7e12b0f64e666
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024507
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736617}
parent c3ff7967
...@@ -294,7 +294,7 @@ INSTANTIATE_TEST_SUITE_P( ...@@ -294,7 +294,7 @@ INSTANTIATE_TEST_SUITE_P(
constexpr char kCompressedSeedTestValue[] = COMPRESSED_SEED_TEST_VALUE; constexpr char kCompressedSeedTestValue[] = COMPRESSED_SEED_TEST_VALUE;
constexpr char kSignatureValue[] = SEED_SIGNATURE_TEST_VALUE; constexpr char kSignatureValue[] = SEED_SIGNATURE_TEST_VALUE;
extern const char kWithVariationsPrefs[] = const char kWithVariationsPrefs[] =
"{\n" "{\n"
" \"variations_compressed_seed\": \"" COMPRESSED_SEED_TEST_VALUE " \"variations_compressed_seed\": \"" COMPRESSED_SEED_TEST_VALUE
"\",\n" "\",\n"
......
...@@ -145,14 +145,8 @@ const char kAutofillAlwaysReturnCloudTokenizedCardDescription[] = ...@@ -145,14 +145,8 @@ const char kAutofillAlwaysReturnCloudTokenizedCardDescription[] =
"(cloud tokenized version of the Primary Account Number) and dCVV (dynamic " "(cloud tokenized version of the Primary Account Number) and dCVV (dynamic "
"CVV)."; "CVV).";
extern const char kAutofillAlwaysShowServerCardsInSyncTransportName[] = const char kAutofillAssistantChromeEntryName[] = "AutofillAssistantChromeEntry";
"AlwaysShowServerCardsInSyncTransport"; const char kAutofillAssistantChromeEntryDescription[] =
extern const char kAutofillAlwaysShowServerCardsInSyncTransportDescription[] =
"Always show server cards when in sync transport mode for wallet data";
extern const char kAutofillAssistantChromeEntryName[] =
"AutofillAssistantChromeEntry";
extern const char kAutofillAssistantChromeEntryDescription[] =
"Initiate autofill assistant from within Chrome."; "Initiate autofill assistant from within Chrome.";
extern const char kAutofillAssistantDirectActionsName[] = extern const char kAutofillAssistantDirectActionsName[] =
...@@ -256,9 +250,9 @@ const char kAutofillRichMetadataQueriesDescription[] = ...@@ -256,9 +250,9 @@ const char kAutofillRichMetadataQueriesDescription[] =
"Transmit rich form/field metadata when querying the autofill server. " "Transmit rich form/field metadata when querying the autofill server. "
"This feature only works on the Canary and Dev channels."; "This feature only works on the Canary and Dev channels.";
extern const char kAutofillSaveAndFillVPAName[] = const char kAutofillSaveAndFillVPAName[] =
"Offer save and autofill of UPI/VPA values"; "Offer save and autofill of UPI/VPA values";
extern const char kAutofillSaveAndFillVPADescription[] = const char kAutofillSaveAndFillVPADescription[] =
"If enabled, when autofill recognizes a UPI/VPA value in a payment form, " "If enabled, when autofill recognizes a UPI/VPA value in a payment form, "
"it will offer to save it. If saved, it will be offered for filling in " "it will offer to save it. If saved, it will be offered for filling in "
"fields which expect a VPA."; "fields which expect a VPA.";
...@@ -515,9 +509,9 @@ const char kEnableDeferAllScriptWithoutOptimizationHintsDescription[] = ...@@ -515,9 +509,9 @@ const char kEnableDeferAllScriptWithoutOptimizationHintsDescription[] =
"that the ECT trigger threshold is set to 4G (which is otherwise provided " "that the ECT trigger threshold is set to 4G (which is otherwise provided "
"by the optimization hints). Rest of the checks are still executed."; "by the optimization hints). Rest of the checks are still executed.";
extern const char kEnableEduCoexistenceName[] = const char kEnableEduCoexistenceName[] =
"Enable Family Link managed accounts and EDU accounts coexistence"; "Enable Family Link managed accounts and EDU accounts coexistence";
extern const char kEnableEduCoexistenceDescription[] = const char kEnableEduCoexistenceDescription[] =
"Allows Family Link managed users to add secondary EDU accounts."; "Allows Family Link managed users to add secondary EDU accounts.";
const char kEnableSaveDataName[] = "Enables save data feature"; const char kEnableSaveDataName[] = "Enables save data feature";
...@@ -562,20 +556,19 @@ const char kDesktopMinimalUIDescription[] = ...@@ -562,20 +556,19 @@ const char kDesktopMinimalUIDescription[] =
"PWAs with display mode minimal-ui open in a window with Back and Refresh " "PWAs with display mode minimal-ui open in a window with Back and Refresh "
"buttons."; "buttons.";
extern const char kDesktopPWAsLocalUpdatingName[] = const char kDesktopPWAsLocalUpdatingName[] = "Desktop PWAs local updating";
"Desktop PWAs local updating"; const char kDesktopPWAsLocalUpdatingDescription[] =
extern const char kDesktopPWAsLocalUpdatingDescription[] =
"Enable installed PWAs to update their app manifest data when the site " "Enable installed PWAs to update their app manifest data when the site "
"manifest data has changed."; "manifest data has changed.";
extern const char kDesktopPWAsLocalUpdatingThrottlePersistenceName[] = const char kDesktopPWAsLocalUpdatingThrottlePersistenceName[] =
"Desktop PWAs local updating throttle persistence"; "Desktop PWAs local updating throttle persistence";
extern const char kDesktopPWAsLocalUpdatingThrottlePersistenceDescription[] = const char kDesktopPWAsLocalUpdatingThrottlePersistenceDescription[] =
"Persist the throttling of local PWA manifest update checks across browser " "Persist the throttling of local PWA manifest update checks across browser "
"restarts."; "restarts.";
extern const char kDesktopPWAsTabStripName[] = "Desktop PWA tab strips"; const char kDesktopPWAsTabStripName[] = "Desktop PWA tab strips";
extern const char kDesktopPWAsTabStripDescription[] = const char kDesktopPWAsTabStripDescription[] =
"Experimental UI for exploring what PWA windows would look like with a tab " "Experimental UI for exploring what PWA windows would look like with a tab "
"strip."; "strip.";
...@@ -1162,9 +1155,8 @@ const char kLookalikeUrlNavigationSuggestionsDescription[] = ...@@ -1162,9 +1155,8 @@ const char kLookalikeUrlNavigationSuggestionsDescription[] =
const char kMarkHttpAsName[] = "Mark non-secure origins as non-secure"; const char kMarkHttpAsName[] = "Mark non-secure origins as non-secure";
const char kMarkHttpAsDescription[] = "Change the UI treatment for HTTP pages"; const char kMarkHttpAsDescription[] = "Change the UI treatment for HTTP pages";
extern const char kMediaInspectorLoggingName[] = const char kMediaInspectorLoggingName[] = "Enable media log in developer tools";
"Enable media log in developer tools"; const char kMediaInspectorLoggingDescription[] =
extern const char kMediaInspectorLoggingDescription[] =
"Move media logging from chrome://media-internals into the developer tools " "Move media logging from chrome://media-internals into the developer tools "
"project; #enable-devtools-experiments must also be enabled as well on " "project; #enable-devtools-experiments must also be enabled as well on "
"desktop platforms"; "desktop platforms";
...@@ -1827,8 +1819,8 @@ const char kSpeculativeServiceWorkerStartOnQueryInputDescription[] = ...@@ -1827,8 +1819,8 @@ const char kSpeculativeServiceWorkerStartOnQueryInputDescription[] =
"a query, any service worker associated with the search engine the query " "a query, any service worker associated with the search engine the query "
"will be sent to is started early."; "will be sent to is started early.";
extern const char kStrictOriginIsolationName[] = "Strict-Origin-Isolation"; const char kStrictOriginIsolationName[] = "Strict-Origin-Isolation";
extern const char kStrictOriginIsolationDescription[] = const char kStrictOriginIsolationDescription[] =
"Experimental security mode that strengthens the site isolation policy. " "Experimental security mode that strengthens the site isolation policy. "
"Controls whether site isolation should use origins instead of scheme and " "Controls whether site isolation should use origins instead of scheme and "
"eTLD+1."; "eTLD+1.";
...@@ -2322,8 +2314,8 @@ const char kContentIndexingNTPName[] = "Content indexing in NTP"; ...@@ -2322,8 +2314,8 @@ const char kContentIndexingNTPName[] = "Content indexing in NTP";
const char kContentIndexingNTPDescription[] = const char kContentIndexingNTPDescription[] =
"Shows content indexing entry point UI in NTP"; "Shows content indexing entry point UI in NTP";
extern const char kContextMenuCopyImageName[] = "Copy Image"; const char kContextMenuCopyImageName[] = "Copy Image";
extern const char kContextMenuCopyImageDescription[] = const char kContextMenuCopyImageDescription[] =
"Enable copying image to system clipboard via context menu."; "Enable copying image to system clipboard via context menu.";
const char kContextualSearchDefinitionsName[] = "Contextual Search definitions"; const char kContextualSearchDefinitionsName[] = "Contextual Search definitions";
...@@ -2550,9 +2542,9 @@ const char kPhotoPickerVideoSupportName[] = "Photo Picker Video Support"; ...@@ -2550,9 +2542,9 @@ const char kPhotoPickerVideoSupportName[] = "Photo Picker Video Support";
const char kPhotoPickerVideoSupportDescription[] = const char kPhotoPickerVideoSupportDescription[] =
"Enables video files to be shown in the Photo Picker dialog"; "Enables video files to be shown in the Photo Picker dialog";
extern const char kProcessSharingWithDefaultSiteInstancesName[] = const char kProcessSharingWithDefaultSiteInstancesName[] =
"Process sharing with default site instances"; "Process sharing with default site instances";
extern const char kProcessSharingWithDefaultSiteInstancesDescription[] = const char kProcessSharingWithDefaultSiteInstancesDescription[] =
"When site isolation is disabled, this mode changes how sites are lumped " "When site isolation is disabled, this mode changes how sites are lumped "
"in to shared processes. For sites that do not require isolation, this " "in to shared processes. For sites that do not require isolation, this "
"feature groups them into a single 'default' site instance (per browsing " "feature groups them into a single 'default' site instance (per browsing "
...@@ -2560,9 +2552,9 @@ extern const char kProcessSharingWithDefaultSiteInstancesDescription[] = ...@@ -2560,9 +2552,9 @@ extern const char kProcessSharingWithDefaultSiteInstancesDescription[] =
"enables resource savings by creating fewer processes for sites that do " "enables resource savings by creating fewer processes for sites that do "
"not need isolation."; "not need isolation.";
extern const char kProcessSharingWithStrictSiteInstancesName[] = const char kProcessSharingWithStrictSiteInstancesName[] =
"Process sharing with strict site instances"; "Process sharing with strict site instances";
extern const char kProcessSharingWithStrictSiteInstancesDescription[] = const char kProcessSharingWithStrictSiteInstancesDescription[] =
"When site isolation is disabled, this mode changes how sites are lumped " "When site isolation is disabled, this mode changes how sites are lumped "
"in to a shared process. Process selection is usually controlled with " "in to a shared process. Process selection is usually controlled with "
"site instances. With strict site isolation, each site on a page gets its " "site instances. With strict site isolation, each site on a page gets its "
...@@ -2631,9 +2623,9 @@ const char kStrictSiteIsolationDescription[] = ...@@ -2631,9 +2623,9 @@ const char kStrictSiteIsolationDescription[] =
"#site-isolation-trial-opt-out for how to disable site isolation for " "#site-isolation-trial-opt-out for how to disable site isolation for "
"testing."; "testing.";
extern const char kTabSwitcherLongpressMenuName[] = const char kTabSwitcherLongpressMenuName[] =
"Enable tab switcher long-press menu"; "Enable tab switcher long-press menu";
extern const char kTabSwitcherLongpressMenuDescription[] = const char kTabSwitcherLongpressMenuDescription[] =
"Enable showing a popup menu when the tab switcher is long-pressed, which " "Enable showing a popup menu when the tab switcher is long-pressed, which "
"displays options for 'NewTab', 'New incognito tab' and 'Close tab'."; "displays options for 'NewTab', 'New incognito tab' and 'Close tab'.";
...@@ -3083,12 +3075,6 @@ const char kAshEnableUnifiedDesktopDescription[] = ...@@ -3083,12 +3075,6 @@ const char kAshEnableUnifiedDesktopDescription[] =
"Enable unified desktop mode which allows a window to span multiple " "Enable unified desktop mode which allows a window to span multiple "
"displays."; "displays.";
extern const char kAshNotificationStackingBarRedesignName[] =
"Redesigned notification stacking bar";
extern const char kAshNotificationStackingBarRedesignDescription[] =
"Enables the redesigned notification stacking bar UI with a \"Clear all\" "
"button.";
const char kAshSwapSideVolumeButtonsForOrientationName[] = const char kAshSwapSideVolumeButtonsForOrientationName[] =
"Swap side volume buttons to match screen orientation."; "Swap side volume buttons to match screen orientation.";
const char kAshSwapSideVolumeButtonsForOrientationDescription[] = const char kAshSwapSideVolumeButtonsForOrientationDescription[] =
...@@ -3465,8 +3451,8 @@ const char kLockScreenNotificationName[] = "Lock screen notification"; ...@@ -3465,8 +3451,8 @@ const char kLockScreenNotificationName[] = "Lock screen notification";
const char kLockScreenNotificationDescription[] = const char kLockScreenNotificationDescription[] =
"Enable notifications on the lock screen."; "Enable notifications on the lock screen.";
extern const char kMediaAppName[] = "Media App"; const char kMediaAppName[] = "Media App";
extern const char kMediaAppDescription[] = const char kMediaAppDescription[] =
"Enables the chrome://media-app System Web App (SWA)"; "Enables the chrome://media-app System Web App (SWA)";
const char kMediaSessionNotificationsName[] = "Media session notifications"; const char kMediaSessionNotificationsName[] = "Media session notifications";
...@@ -3784,8 +3770,8 @@ const char kPaintHoldingDescription[] = ...@@ -3784,8 +3770,8 @@ const char kPaintHoldingDescription[] =
#if defined(WEBRTC_USE_PIPEWIRE) #if defined(WEBRTC_USE_PIPEWIRE)
extern const char kWebrtcPipeWireCapturerName[] = "WebRTC PipeWire support"; const char kWebrtcPipeWireCapturerName[] = "WebRTC PipeWire support";
extern const char kWebrtcPipeWireCapturerDescription[] = const char kWebrtcPipeWireCapturerDescription[] =
"When enabled the WebRTC will use the PipeWire multimedia server for " "When enabled the WebRTC will use the PipeWire multimedia server for "
"capturing the desktop content on the Wayland display server."; "capturing the desktop content on the Wayland display server.";
......
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
#include "chrome/browser/heavy_ad_intervention/heavy_ad_features.h" #include "chrome/browser/heavy_ad_intervention/heavy_ad_features.h"
extern const char kHeavyAdReportingOnlyParamName[] = "reporting-only"; const char kHeavyAdReportingOnlyParamName[] = "reporting-only";
extern const char kHeavyAdReportingEnabledParamName[] = "reporting-enabled"; const char kHeavyAdReportingEnabledParamName[] = "reporting-enabled";
...@@ -74,7 +74,7 @@ const base::FeatureParam<int> kDynamicTuningTimeSec = { ...@@ -74,7 +74,7 @@ const base::FeatureParam<int> kDynamicTuningTimeSec = {
// The time a frame must be invisible before being additionally scaled. -1 will // The time a frame must be invisible before being additionally scaled. -1 will
// disable invisible scaling. // disable invisible scaling.
extern const base::FeatureParam<int> kDynamicTuningScaleInvisibleTimeSec = { const base::FeatureParam<int> kDynamicTuningScaleInvisibleTimeSec = {
&kDynamicTcmallocTuning, "DynamicTcmallocScaleInvisibleTimeSec", -1}; &kDynamicTcmallocTuning, "DynamicTcmallocScaleInvisibleTimeSec", -1};
#endif // BUILDFLAG(USE_TCMALLOC) #endif // BUILDFLAG(USE_TCMALLOC)
......
...@@ -31,7 +31,7 @@ const char kCrashStagingUploadURL[] = ...@@ -31,7 +31,7 @@ const char kCrashStagingUploadURL[] =
"https://clients2.google.com/cr/staging_report"; "https://clients2.google.com/cr/staging_report";
// Path names. // Path names.
extern const char kAppsDir[] = "apps"; const char kAppsDir[] = "apps";
extern const char kUninstallScript[] = "uninstall.cmd"; const char kUninstallScript[] = "uninstall.cmd";
} // namespace updater } // namespace updater
...@@ -8,7 +8,7 @@ namespace updater { ...@@ -8,7 +8,7 @@ namespace updater {
const base::char16 kGlobalPrefix[] = L"Global\\G"; const base::char16 kGlobalPrefix[] = L"Global\\G";
extern const base::char16 kRegistryValuePV[] = L"pv"; const base::char16 kRegistryValuePV[] = L"pv";
extern const base::char16 kRegistryValueName[] = L"name"; const base::char16 kRegistryValueName[] = L"name";
} // namespace updater } // namespace updater
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