// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_BROWSER_DISABLE_REASON_H_ #define EXTENSIONS_BROWSER_DISABLE_REASON_H_ #include <limits> namespace extensions { namespace disable_reason { // Reasons a Chrome extension may be disabled. These are used in histograms, so // do not remove/reorder entries - only add at the end just before // DISABLE_REASON_LAST (and update the shift value for it). Also remember to // update the enum listing in tools/metrics/histograms.xml. // Also carefully consider if your reason should sync to other devices, and if // so, add it to kKnownSyncableDisableReasons in // chrome/browser/extensions/extension_sync_service.cc. // Finally, consider whether your disable reason applies to component // extensions. Reference/update the existing list of applicable reasons in // ExtensionsPrefs::ClearInapplicableDisableReasonsForComponentExtension. enum DisableReason { … }; static_assert …; } // namespace disable_reason } // namespace extensions #endif // EXTENSIONS_BROWSER_DISABLE_REASON_H_