Commit b1b32d04 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove unneeded extern keywords.

TBR=reveman@chromium.org,dgozman@chromium.org,lfg@chromium.org,sdefresne@chromium.org,rockot@chromium.org

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I2b94ac88777958e132dce4772fda9ba12320c560
Reviewed-on: https://chromium-review.googlesource.com/771053
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517467}
parent 64f4905a
...@@ -8,27 +8,27 @@ namespace cc { ...@@ -8,27 +8,27 @@ namespace cc {
namespace devtools_instrumentation { namespace devtools_instrumentation {
namespace internal { namespace internal {
extern const char kCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools.timeline"); const char kCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools.timeline");
extern const char kCategoryFrame[] = const char kCategoryFrame[] =
TRACE_DISABLED_BY_DEFAULT("devtools.timeline.frame"); TRACE_DISABLED_BY_DEFAULT("devtools.timeline.frame");
extern const char kData[] = "data"; const char kData[] = "data";
extern const char kFrameId[] = "frameId"; const char kFrameId[] = "frameId";
extern const char kLayerId[] = "layerId"; const char kLayerId[] = "layerId";
extern const char kLayerTreeId[] = "layerTreeId"; const char kLayerTreeId[] = "layerTreeId";
extern const char kPixelRefId[] = "pixelRefId"; const char kPixelRefId[] = "pixelRefId";
extern const char kImageDecodeTask[] = "ImageDecodeTask"; const char kImageDecodeTask[] = "ImageDecodeTask";
extern const char kBeginFrame[] = "BeginFrame"; const char kBeginFrame[] = "BeginFrame";
extern const char kNeedsBeginFrameChanged[] = "NeedsBeginFrameChanged"; const char kNeedsBeginFrameChanged[] = "NeedsBeginFrameChanged";
extern const char kActivateLayerTree[] = "ActivateLayerTree"; const char kActivateLayerTree[] = "ActivateLayerTree";
extern const char kRequestMainThreadFrame[] = "RequestMainThreadFrame"; const char kRequestMainThreadFrame[] = "RequestMainThreadFrame";
extern const char kBeginMainThreadFrame[] = "BeginMainThreadFrame"; const char kBeginMainThreadFrame[] = "BeginMainThreadFrame";
extern const char kDrawFrame[] = "DrawFrame"; const char kDrawFrame[] = "DrawFrame";
extern const char kCompositeLayers[] = "CompositeLayers"; const char kCompositeLayers[] = "CompositeLayers";
} // namespace internal } // namespace internal
extern const char kPaintSetup[] = "PaintSetup"; const char kPaintSetup[] = "PaintSetup";
extern const char kUpdateLayer[] = "UpdateLayer"; const char kUpdateLayer[] = "UpdateLayer";
ScopedImageDecodeTask::ScopedImageDecodeTask(const void* image_ptr, ScopedImageDecodeTask::ScopedImageDecodeTask(const void* image_ptr,
DecodeType decode_type, DecodeType decode_type,
......
...@@ -47,7 +47,7 @@ const char kArcSetNotificationsEnabledDeferred[] = ...@@ -47,7 +47,7 @@ const char kArcSetNotificationsEnabledDeferred[] =
const char kArcSignedIn[] = "arc.signedin"; const char kArcSignedIn[] = "arc.signedin";
// A preference that indicates an ARC comaptible filesystem was chosen for // A preference that indicates an ARC comaptible filesystem was chosen for
// the user directory (i.e., the user finished required migration.) // the user directory (i.e., the user finished required migration.)
extern const char kArcCompatibleFilesystemChosen[] = const char kArcCompatibleFilesystemChosen[] =
"arc.compatible_filesystem.chosen"; "arc.compatible_filesystem.chosen";
// A preference that indicates that user accepted Voice Interaction Value Prop. // A preference that indicates that user accepted Voice Interaction Value Prop.
const char kArcVoiceInteractionValuePropAccepted[] = const char kArcVoiceInteractionValuePropAccepted[] =
......
...@@ -43,7 +43,7 @@ const char kSwitchRequestParam[] = "test-request"; ...@@ -43,7 +43,7 @@ const char kSwitchRequestParam[] = "test-request";
// Disables pings. Pings are the requests sent to the update server that report // Disables pings. Pings are the requests sent to the update server that report
// the success or the failure of component install or update attempts. // the success or the failure of component install or update attempts.
extern const char kSwitchDisablePings[] = "disable-pings"; const char kSwitchDisablePings[] = "disable-pings";
// Sets the URL for updates. // Sets the URL for updates.
const char kSwitchUrlSource[] = "url-source"; const char kSwitchUrlSource[] = "url-source";
......
...@@ -39,19 +39,18 @@ const char kCryptAuthEnrollmentLastEnrollmentTimeSeconds[] = ...@@ -39,19 +39,18 @@ const char kCryptAuthEnrollmentLastEnrollmentTimeSeconds[] =
// The reason that the next enrollment is performed. This should be one of the // The reason that the next enrollment is performed. This should be one of the
// enum values of InvocationReason in // enum values of InvocationReason in
// components/cryptauth/proto/cryptauth_api.proto. // components/cryptauth/proto/cryptauth_api.proto.
extern const char kCryptAuthEnrollmentReason[] = "cryptauth.enrollment.reason"; const char kCryptAuthEnrollmentReason[] = "cryptauth.enrollment.reason";
// The public key of the user and device enrolled with CryptAuth. // The public key of the user and device enrolled with CryptAuth.
extern const char kCryptAuthEnrollmentUserPublicKey[] = const char kCryptAuthEnrollmentUserPublicKey[] =
"cryptauth.enrollment.user_public_key"; "cryptauth.enrollment.user_public_key";
// The private key of the user and device enrolled with CryptAuth. // The private key of the user and device enrolled with CryptAuth.
extern const char kCryptAuthEnrollmentUserPrivateKey[] = const char kCryptAuthEnrollmentUserPrivateKey[] =
"cryptauth.enrollment.user_private_key"; "cryptauth.enrollment.user_private_key";
// The GCM registration id used for receiving push messages from CryptAuth. // The GCM registration id used for receiving push messages from CryptAuth.
extern const char kCryptAuthGCMRegistrationId[] = const char kCryptAuthGCMRegistrationId[] = "cryptauth.gcm_registration_id";
"cryptauth.gcm_registration_id";
} // namespace prefs } // namespace prefs
} // namespace cryptauth } // namespace cryptauth
...@@ -45,12 +45,6 @@ using base::SampleCountIterator; ...@@ -45,12 +45,6 @@ using base::SampleCountIterator;
namespace metrics { namespace metrics {
namespace internal {
// Maximum number of events before truncation.
extern const int kOmniboxEventLimit = 5000;
extern const int kUserActionEventLimit = 5000;
}
namespace { namespace {
// A simple class to write histogram data to a log. // A simple class to write histogram data to a log.
......
...@@ -27,15 +27,16 @@ class HistogramSamples; ...@@ -27,15 +27,16 @@ class HistogramSamples;
namespace metrics { namespace metrics {
namespace internal {
extern const int kOmniboxEventLimit;
extern const int kUserActionEventLimit;
}
class MetricsProvider; class MetricsProvider;
class MetricsServiceClient; class MetricsServiceClient;
class DelegatingProvider; class DelegatingProvider;
namespace internal {
// Maximum number of events before truncation.
constexpr int kOmniboxEventLimit = 5000;
constexpr int kUserActionEventLimit = 5000;
} // namespace internal
class MetricsLog { class MetricsLog {
public: public:
enum LogType { enum LogType {
......
...@@ -12,13 +12,13 @@ namespace ntp_tiles { ...@@ -12,13 +12,13 @@ namespace ntp_tiles {
const char kPopularSitesFieldTrialName[] = "NTPPopularSites"; const char kPopularSitesFieldTrialName[] = "NTPPopularSites";
extern const base::Feature kPopularSitesBakedInContentFeature{ const base::Feature kPopularSitesBakedInContentFeature{
"NTPPopularSitesBakedInContent", base::FEATURE_ENABLED_BY_DEFAULT}; "NTPPopularSitesBakedInContent", base::FEATURE_ENABLED_BY_DEFAULT};
extern const base::Feature kNtpMostLikelyFaviconsFromServerFeature{ const base::Feature kNtpMostLikelyFaviconsFromServerFeature{
"NTPMostLikelyFaviconsFromServer", base::FEATURE_ENABLED_BY_DEFAULT}; "NTPMostLikelyFaviconsFromServer", base::FEATURE_ENABLED_BY_DEFAULT};
extern const base::Feature kSiteExplorationUiFeature{ const base::Feature kSiteExplorationUiFeature{
"SiteExplorationUi", base::FEATURE_DISABLED_BY_DEFAULT}; "SiteExplorationUi", base::FEATURE_DISABLED_BY_DEFAULT};
bool AreNtpMostLikelyFaviconsFromServerEnabled() { bool AreNtpMostLikelyFaviconsFromServerEnabled() {
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
namespace offline_pages { namespace offline_pages {
extern const size_t kMaxLogCount = 50;
OfflineEventLogger::OfflineEventLogger() OfflineEventLogger::OfflineEventLogger()
: activities_(0), is_logging_(false), client_(nullptr) {} : activities_(0), is_logging_(false), client_(nullptr) {}
......
...@@ -13,9 +13,8 @@ ...@@ -13,9 +13,8 @@
namespace offline_pages { namespace offline_pages {
// Maximum number of recorded Logs to keep track of at any moment. Defined in // Maximum number of recorded Logs to keep track of at any moment.
// offline_event_logger.cc. constexpr size_t kMaxLogCount = 50;
extern const size_t kMaxLogCount;
// Facilitates the logging of events. Subclasses should create methods that // Facilitates the logging of events. Subclasses should create methods that
// call RecordActivity to write into the log. |SetIsLogging|, |GetLogs|, and // call RecordActivity to write into the log. |SetIsLogging|, |GetLogs|, and
...@@ -34,7 +33,7 @@ class OfflineEventLogger { ...@@ -34,7 +33,7 @@ class OfflineEventLogger {
// to the event logger instance. // to the event logger instance.
class Client { class Client {
public: public:
virtual ~Client(){}; virtual ~Client() {}
virtual void CustomLog(const std::string& message) = 0; virtual void CustomLog(const std::string& message) = 0;
}; };
......
...@@ -48,19 +48,19 @@ const base::Feature kEnablePasswordForceSaving = { ...@@ -48,19 +48,19 @@ const base::Feature kEnablePasswordForceSaving = {
"enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT}; "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable the user to trigger password generation manually. // Enable the user to trigger password generation manually.
extern const base::Feature kEnableManualPasswordGeneration = { const base::Feature kEnableManualPasswordGeneration = {
"enable-manual-password-generation", base::FEATURE_ENABLED_BY_DEFAULT}; "enable-manual-password-generation", base::FEATURE_ENABLED_BY_DEFAULT};
// Enables username correction while saving username and password details. // Enables username correction while saving username and password details.
extern const base::Feature kEnableUsernameCorrection{ const base::Feature kEnableUsernameCorrection{"EnableUsernameCorrection",
"EnableUsernameCorrection", base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// Enables password selection while saving username and password details. // Enables password selection while saving username and password details.
extern const base::Feature kEnablePasswordSelection{ const base::Feature kEnablePasswordSelection{"EnablePasswordSelection",
"EnablePasswordSelection", base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// Enables the "Show all saved passwords" option in Context Menu. // Enables the "Show all saved passwords" option in Context Menu.
extern const base::Feature kEnableShowAllSavedPasswordsContextMenu{ const base::Feature kEnableShowAllSavedPasswordsContextMenu{
"kEnableShowAllSavedPasswordsContextMenu", "kEnableShowAllSavedPasswordsContextMenu",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
......
...@@ -27,7 +27,7 @@ const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs"; ...@@ -27,7 +27,7 @@ const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs";
// Whether or not EasyUnlock is enabled on the ChromeOS login screen (in // Whether or not EasyUnlock is enabled on the ChromeOS login screen (in
// addition to the lock screen). // addition to the lock screen).
extern const char kProximityAuthIsChromeOSLoginEnabled[] = const char kProximityAuthIsChromeOSLoginEnabled[] =
"proximity_auth.is_chromeos_login_enabled"; "proximity_auth.is_chromeos_login_enabled";
// The timestamp of the last password entry in milliseconds, used to enforce // The timestamp of the last password entry in milliseconds, used to enforce
...@@ -40,7 +40,7 @@ const char kProximityAuthLastPromotionCheckTimestampMs[] = ...@@ -40,7 +40,7 @@ const char kProximityAuthLastPromotionCheckTimestampMs[] =
"proximity_auth.last_promotion_check_timestamp_ms"; "proximity_auth.last_promotion_check_timestamp_ms";
// The number of times the promotion was shown to the user. // The number of times the promotion was shown to the user.
extern const char kProximityAuthPromotionShownCount[] = const char kProximityAuthPromotionShownCount[] =
"proximity_auth.promotion_shown_count"; "proximity_auth.promotion_shown_count";
// The dictionary containing remote BLE devices. // The dictionary containing remote BLE devices.
......
...@@ -10,11 +10,11 @@ const char kChromeUISafeBrowsingURL[] = "chrome://safe-browsing/"; ...@@ -10,11 +10,11 @@ const char kChromeUISafeBrowsingURL[] = "chrome://safe-browsing/";
const char kChromeUISafeBrowsingHost[] = "safe-browsing"; const char kChromeUISafeBrowsingHost[] = "safe-browsing";
const char kSbUnderConstruction[] = const char kSbUnderConstruction[] =
"The safe browsing page is under construction."; "The safe browsing page is under construction.";
extern const char kChromeUISafeBrowsingMatchMalwareUrl[] = const char kChromeUISafeBrowsingMatchMalwareUrl[] =
"chrome://safe-browsing/match?type=malware"; "chrome://safe-browsing/match?type=malware";
extern const char kChromeUISafeBrowsingMatchPhishingUrl[] = const char kChromeUISafeBrowsingMatchPhishingUrl[] =
"chrome://safe-browsing/match?type=phishing"; "chrome://safe-browsing/match?type=phishing";
extern const char kChromeUISafeBrowsingMatchUnwantedUrl[] = const char kChromeUISafeBrowsingMatchUnwantedUrl[] =
"chrome://safe-browsing/match?type=unwanted"; "chrome://safe-browsing/match?type=unwanted";
} // namespace safe_browsing } // namespace safe_browsing
...@@ -27,7 +27,7 @@ const char kAccountConsistencyDice[] = "dice"; ...@@ -27,7 +27,7 @@ const char kAccountConsistencyDice[] = "dice";
#endif #endif
// Enables sending EnableRefreshTokenAnnotationRequest. // Enables sending EnableRefreshTokenAnnotationRequest.
extern const char kEnableRefreshTokenAnnotationRequest[] = const char kEnableRefreshTokenAnnotationRequest[] =
"enable-refresh-token-annotation-request"; "enable-refresh-token-annotation-request";
// Enables multiple account versions of chrome.identity APIs. // Enables multiple account versions of chrome.identity APIs.
......
...@@ -94,7 +94,7 @@ const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; ...@@ -94,7 +94,7 @@ const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
// Disable backgrounding renders for occluded windows. Done for tests to avoid // Disable backgrounding renders for occluded windows. Done for tests to avoid
// nondeterministic behavior. // nondeterministic behavior.
extern const char kDisableBackgroundingOccludedWindowsForTesting[] = const char kDisableBackgroundingOccludedWindowsForTesting[] =
"disable-backgrounding-occluded-windows"; "disable-backgrounding-occluded-windows";
// Disable task throttling of timer tasks from background pages. // Disable task throttling of timer tasks from background pages.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace extensionoptions { namespace extensionoptions {
// API namespace. // API namespace.
extern const char kAPINamespace[] = "extensionOptionsInternal"; const char kAPINamespace[] = "extensionOptionsInternal";
const char kExtensionId[] = "extension"; const char kExtensionId[] = "extension";
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace extensionview { namespace extensionview {
// API namespace. // API namespace.
extern const char kAPINamespace[] = "extensionViewInternal"; const char kAPINamespace[] = "extensionViewInternal";
// Attributes. // Attributes.
const char kAttributeExtension[] = "extension"; const char kAttributeExtension[] = "extension";
......
...@@ -91,9 +91,8 @@ const char kPropertyAnimationsToolbarDescription[] = ...@@ -91,9 +91,8 @@ const char kPropertyAnimationsToolbarDescription[] =
"When enabled, Toolbar animations will be done using " "When enabled, Toolbar animations will be done using "
"UIViewPropertyAnimator"; "UIViewPropertyAnimator";
extern const char kSafeAreaCompatibleToolbarName[] = const char kSafeAreaCompatibleToolbarName[] = "Safe Area Compatible Toolbar";
"Safe Area Compatible Toolbar"; const char kSafeAreaCompatibleToolbarDescription[] =
extern const char kSafeAreaCompatibleToolbarDescription[] =
"When enabled, the toolbar resizes itself when the safe area changes."; "When enabled, the toolbar resizes itself when the safe area changes.";
const char kShareCanonicalURLName[] = "Share Canonical URL"; const char kShareCanonicalURLName[] = "Share Canonical URL";
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
extern const base::Feature kPropertyAnimationsToolbar{ const base::Feature kPropertyAnimationsToolbar{
"PropertyAnimationsToolbar", base::FEATURE_DISABLED_BY_DEFAULT}; "PropertyAnimationsToolbar", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kCleanToolbar{"CleanToolbar", const base::Feature kCleanToolbar{"CleanToolbar",
......
...@@ -8,9 +8,9 @@ namespace mojo { ...@@ -8,9 +8,9 @@ namespace mojo {
namespace edk { namespace edk {
namespace ports { namespace ports {
extern const PortName kInvalidPortName = {0, 0}; const PortName kInvalidPortName = {0, 0};
extern const NodeName kInvalidNodeName = {0, 0}; const NodeName kInvalidNodeName = {0, 0};
std::ostream& operator<<(std::ostream& stream, const Name& name) { std::ostream& operator<<(std::ostream& stream, const Name& name) {
std::ios::fmtflags flags(stream.flags()); std::ios::fmtflags flags(stream.flags());
......
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