OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ | 5 #ifndef EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ |
6 #define EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ | 6 #define EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 | 9 |
10 enum UninstallReason { | 10 enum UninstallReason { |
11 UNINSTALL_REASON_FOR_TESTING, // Used for testing code only | 11 UNINSTALL_REASON_FOR_TESTING, // Used for testing code only |
12 UNINSTALL_REASON_USER_INITIATED, // User performed some UI gesture | 12 UNINSTALL_REASON_USER_INITIATED, // User performed some UI gesture |
13 UNINSTALL_REASON_EXTENSION_DISABLED, // Extension disabled due to error | 13 UNINSTALL_REASON_EXTENSION_DISABLED, // Extension disabled due to error |
14 UNINSTALL_REASON_STORAGE_THRESHOLD_EXCEEDED, | 14 UNINSTALL_REASON_STORAGE_THRESHOLD_EXCEEDED, |
15 UNINSTALL_REASON_INSTALL_CANCELED, | 15 UNINSTALL_REASON_INSTALL_CANCELED, |
16 UNINSTALL_REASON_MANAGEMENT_API, | 16 UNINSTALL_REASON_MANAGEMENT_API, |
17 UNINSTALL_REASON_SYNC, | 17 UNINSTALL_REASON_SYNC, |
18 UNINSTALL_REASON_ORPHANED_THEME, | 18 UNINSTALL_REASON_ORPHANED_THEME, |
19 UNINSTALL_REASON_ORPHANED_EPHEMERAL_EXTENSION, | 19 UNINSTALL_REASON_ORPHANED_EPHEMERAL_EXTENSION, |
20 // The entries below imply bypassing checking user has permission to | 20 // The entries below imply bypassing checking user has permission to |
21 // uninstall the corresponding extension id. | 21 // uninstall the corresponding extension id. |
22 UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION, | 22 UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION, |
23 UNINSTALL_REASON_ORPHANED_SHARED_MODULE, | 23 UNINSTALL_REASON_ORPHANED_SHARED_MODULE, |
24 UNINSTALL_REASON_INTERNAL_MANAGEMENT, // Internal extensions (see usages) | 24 UNINSTALL_REASON_INTERNAL_MANAGEMENT, // Internal extensions (see usages) |
25 UNINSTALL_REASON_REINSTALL | 25 UNINSTALL_REASON_REINSTALL, |
26 // Component extensions will only ever install once, but can notify uninstall | |
27 // repeatedly. crbug.com/458612. | |
Finnur
2015/02/18 11:51:31
This comment seems out of place. Moving it to wher
David Tseng
2015/02/18 18:24:41
Done.
| |
28 UNINSTALL_REASON_COMPONENT | |
Finnur
2015/02/18 11:51:31
nit: Add trailing comma.
David Tseng
2015/02/18 18:24:41
Is this convention? This wasn't done before, so le
Finnur
2015/02/20 10:31:49
Yes, it is convention to add a trailing comma to p
David Tseng
2015/02/20 18:12:45
Makes sense. Done.
| |
26 }; | 29 }; |
27 | 30 |
28 } // namespace extensions | 31 } // namespace extensions |
29 | 32 |
30 #endif // EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ | 33 #endif // EXTENSIONS_BROWSER_UNINSTALL_REASON_H_ |
OLD | NEW |