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

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

Issue 7981002: Fix crash by preventing extensions from changing their IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add UMA action Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONSTANTS_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 extern const char* kRunAtDocumentEnd; 131 extern const char* kRunAtDocumentEnd;
132 extern const char* kRunAtDocumentIdle; 132 extern const char* kRunAtDocumentIdle;
133 extern const char* kRunAtDocumentStart; 133 extern const char* kRunAtDocumentStart;
134 } // namespace extension_manifest_values 134 } // namespace extension_manifest_values
135 135
136 // Error messages returned from Extension::InitFromValue(). 136 // Error messages returned from Extension::InitFromValue().
137 namespace extension_manifest_errors { 137 namespace extension_manifest_errors {
138 extern const char* kAppsNotEnabled; 138 extern const char* kAppsNotEnabled;
139 extern const char* kBackgroundPermissionNeeded; 139 extern const char* kBackgroundPermissionNeeded;
140 extern const char* kCannotAccessPage; 140 extern const char* kCannotAccessPage;
141 extern const char* kCannotChangeExtensionID;
141 extern const char* kCannotClaimAllHostsInExtent; 142 extern const char* kCannotClaimAllHostsInExtent;
142 extern const char* kCannotClaimAllURLsInExtent; 143 extern const char* kCannotClaimAllURLsInExtent;
143 extern const char* kCannotScriptGallery; 144 extern const char* kCannotScriptGallery;
144 extern const char* kCannotUninstallManagedExtension; 145 extern const char* kCannotUninstallManagedExtension;
145 extern const char* kChromeVersionTooLow; 146 extern const char* kChromeVersionTooLow;
146 extern const char* kDevToolsExperimental; 147 extern const char* kDevToolsExperimental;
147 extern const char* kDisabledByPolicy; 148 extern const char* kDisabledByPolicy;
148 extern const char* kExperimentalFlagRequired; 149 extern const char* kExperimentalFlagRequired;
149 extern const char* kExperimentalFeature; 150 extern const char* kExperimentalFeature;
150 extern const char* kExpectString; 151 extern const char* kExpectString;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 }; 457 };
457 458
458 enum UnloadedExtensionReason { 459 enum UnloadedExtensionReason {
459 UNLOAD_REASON_DISABLE, // Extension is being disabled. 460 UNLOAD_REASON_DISABLE, // Extension is being disabled.
460 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. 461 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version.
461 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. 462 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled.
462 }; 463 };
463 } // extension_misc 464 } // extension_misc
464 465
465 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 466 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698