Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: chrome/common/extensions/extension.h

Issue 9960087: Revert 13676 - Revert 131665 - Add a preference for why an extension is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 enum State { 81 enum State {
82 DISABLED = 0, 82 DISABLED = 0,
83 ENABLED, 83 ENABLED,
84 // An external extension that the user uninstalled. We should not reinstall 84 // An external extension that the user uninstalled. We should not reinstall
85 // such extensions on startup. 85 // such extensions on startup.
86 EXTERNAL_EXTENSION_UNINSTALLED, 86 EXTERNAL_EXTENSION_UNINSTALLED,
87 NUM_STATES 87 NUM_STATES
88 }; 88 };
89 89
90 // Used to record the reason an extension was disabled.
91 enum DisableReason {
92 DISABLE_UNKNOWN,
93 DISABLE_USER_ACTION,
94 DISABLE_PERMISSIONS_INCREASE,
95 DISABLE_RELOAD,
96 DISABLE_LAST, // Not used.
97 };
98
90 enum InstallType { 99 enum InstallType {
91 INSTALL_ERROR, 100 INSTALL_ERROR,
92 DOWNGRADE, 101 DOWNGRADE,
93 REINSTALL, 102 REINSTALL,
94 UPGRADE, 103 UPGRADE,
95 NEW_INSTALL 104 NEW_INSTALL
96 }; 105 };
97 106
98 // Do not change the order of entries or remove entries in this list 107 // Do not change the order of entries or remove entries in this list
99 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions. 108 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions.
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 // only contain the removed permissions. 1120 // only contain the removed permissions.
1112 const ExtensionPermissionSet* permissions; 1121 const ExtensionPermissionSet* permissions;
1113 1122
1114 UpdatedExtensionPermissionsInfo( 1123 UpdatedExtensionPermissionsInfo(
1115 const Extension* extension, 1124 const Extension* extension,
1116 const ExtensionPermissionSet* permissions, 1125 const ExtensionPermissionSet* permissions,
1117 Reason reason); 1126 Reason reason);
1118 }; 1127 };
1119 1128
1120 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1129 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698