blob: 02ec78aa973a348e5721a8c83a7efc6e68534bcc [file] [log] [blame]
[email protected]e43c61f2014-07-20 21:46:341// 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
5#ifndef EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
6#define EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
7
8namespace extensions {
9
asargent8380bd392016-03-21 23:47:3310// Do not remove/reorder these, as they are used in uninstall ping data and we
11// depend on their values being stable.
[email protected]e43c61f2014-07-20 21:46:3412enum UninstallReason {
13 UNINSTALL_REASON_FOR_TESTING, // Used for testing code only
14 UNINSTALL_REASON_USER_INITIATED, // User performed some UI gesture
15 UNINSTALL_REASON_EXTENSION_DISABLED, // Extension disabled due to error
16 UNINSTALL_REASON_STORAGE_THRESHOLD_EXCEEDED,
17 UNINSTALL_REASON_INSTALL_CANCELED,
18 UNINSTALL_REASON_MANAGEMENT_API,
19 UNINSTALL_REASON_SYNC,
20 UNINSTALL_REASON_ORPHANED_THEME,
21 UNINSTALL_REASON_ORPHANED_EPHEMERAL_EXTENSION,
22 // The entries below imply bypassing checking user has permission to
23 // uninstall the corresponding extension id.
24 UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION,
25 UNINSTALL_REASON_ORPHANED_SHARED_MODULE,
rdevlin.cronin5f6b69d2014-09-20 01:23:3526 UNINSTALL_REASON_INTERNAL_MANAGEMENT, // Internal extensions (see usages)
dtseng9fb3d5b2015-02-23 17:24:1727 UNINSTALL_REASON_REINSTALL,
28 UNINSTALL_REASON_COMPONENT_REMOVED,
Takumi Fujimoto43c8c00f2017-07-26 22:48:5629 UNINSTALL_REASON_MIGRATED, // Migrated to component extensions
asargent8380bd392016-03-21 23:47:3330
Bettina Dea7264a04b62018-04-06 04:27:4531 UNINSTALL_REASON_CHROME_WEBSTORE,
32
asargent8380bd392016-03-21 23:47:3333 UNINSTALL_REASON_MAX, // Should always be the last value
[email protected]e43c61f2014-07-20 21:46:3434};
35
Bettina Dea7264a04b62018-04-06 04:27:4536// The source of an uninstall. Do *NOT* reorder or delete any of the named
37// values, as they are used in UMA. Put all new values above
38// NUM_UNINSTALL_SOURCES.
rdevlin.cronine18eb8cd2015-07-16 16:31:2839enum UninstallSource {
40 UNINSTALL_SOURCE_FOR_TESTING,
41 UNINSTALL_SOURCE_TOOLBAR_CONTEXT_MENU,
42 UNINSTALL_SOURCE_PERMISSIONS_INCREASE,
43 UNINSTALL_SOURCE_STORAGE_THRESHOLD_EXCEEDED,
44 UNINSTALL_SOURCE_APP_LIST,
45 UNINSTALL_SOURCE_APP_INFO_DIALOG,
46 UNINSTALL_SOURCE_CHROME_APPS_PAGE,
47 UNINSTALL_SOURCE_CHROME_EXTENSIONS_PAGE,
48 UNINSTALL_SOURCE_EXTENSION,
Bettina Dea7264a04b62018-04-06 04:27:4549 UNINSTALL_SOURCE_CHROME_WEBSTORE,
Alan Cuttera0ec9e442018-08-27 01:18:0650 UNINSTALL_SOURCE_HOSTED_APP_MENU,
rdevlin.cronine18eb8cd2015-07-16 16:31:2851 NUM_UNINSTALL_SOURCES,
52};
53
limasdfd70dc5ae2014-09-13 00:02:2254} // namespace extensions
[email protected]e43c61f2014-07-20 21:46:3455
56#endif // EXTENSIONS_BROWSER_UNINSTALL_REASON_H_