uninstall_reason.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
  5. #define EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
  6. namespace extensions {
  7. // Do not remove/reorder these, as they are used in uninstall ping data and we
  8. // depend on their values being stable.
  9. enum UninstallReason {
  10. UNINSTALL_REASON_FOR_TESTING, // Used for testing code only
  11. UNINSTALL_REASON_USER_INITIATED, // User performed some UI gesture
  12. UNINSTALL_REASON_EXTENSION_DISABLED, // Extension disabled due to error
  13. UNINSTALL_REASON_STORAGE_THRESHOLD_EXCEEDED,
  14. UNINSTALL_REASON_INSTALL_CANCELED,
  15. UNINSTALL_REASON_MANAGEMENT_API,
  16. UNINSTALL_REASON_SYNC,
  17. UNINSTALL_REASON_ORPHANED_THEME,
  18. UNINSTALL_REASON_ORPHANED_EPHEMERAL_EXTENSION,
  19. // The entries below imply bypassing checking user has permission to
  20. // uninstall the corresponding extension id.
  21. UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION,
  22. UNINSTALL_REASON_ORPHANED_SHARED_MODULE,
  23. UNINSTALL_REASON_INTERNAL_MANAGEMENT, // Internal extensions (see usages)
  24. UNINSTALL_REASON_REINSTALL,
  25. UNINSTALL_REASON_COMPONENT_REMOVED,
  26. UNINSTALL_REASON_MIGRATED, // Migrated to component extensions
  27. UNINSTALL_REASON_CHROME_WEBSTORE,
  28. UNINSTALL_REASON_ARC, // Web app that was uninstalled via ARC
  29. UNINSTALL_REASON_MAX, // Should always be the last value
  30. };
  31. // The source of an uninstall. Do *NOT* reorder or delete any of the named
  32. // values, as they are used in UMA. Put all new values above
  33. // NUM_UNINSTALL_SOURCES.
  34. enum UninstallSource {
  35. UNINSTALL_SOURCE_FOR_TESTING,
  36. UNINSTALL_SOURCE_TOOLBAR_CONTEXT_MENU,
  37. UNINSTALL_SOURCE_PERMISSIONS_INCREASE,
  38. UNINSTALL_SOURCE_STORAGE_THRESHOLD_EXCEEDED,
  39. UNINSTALL_SOURCE_APP_LIST,
  40. UNINSTALL_SOURCE_APP_INFO_DIALOG,
  41. UNINSTALL_SOURCE_CHROME_APPS_PAGE,
  42. UNINSTALL_SOURCE_CHROME_EXTENSIONS_PAGE,
  43. UNINSTALL_SOURCE_EXTENSION,
  44. UNINSTALL_SOURCE_CHROME_WEBSTORE,
  45. UNINSTALL_SOURCE_HOSTED_APP_MENU,
  46. NUM_UNINSTALL_SOURCES,
  47. };
  48. } // namespace extensions
  49. #endif // EXTENSIONS_BROWSER_UNINSTALL_REASON_H_